A

Admin • 828.03K Points
Coach

Q. What is the purpose of the update expression in a for loop?

  • (A) To end the loop
  • (B) To initialize variables
  • (C) To increment or modify loop control variables
  • (D) To check conditions
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Java
  • Hashtags: Java Loops

Explanation by: Admin
The update expression modifies the control variable each iteration.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.