A

Admin • 828.03K Points
Coach

Q. What is the output of the following code?

Code:
int i = 0;
while (i < 3)
{
printf("%d", i);
i++;
}
  • (A) 012
  • (B) 123
  • (C) 321
  • (D) Undefined
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin
i starts from 0 and increments till less than 3.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.