A

Admin • 833K Points
Coach

Q. What is the value of i after this loop?

Code:
int i;
for(i = 0; i < 5; i++){}
  • (A) 4
  • (B) 5
  • (C) 6
  • (D) 0
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

The loop increments i after the last check, ending with i = 5.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.