ExamVeda
Login
Home
This question belongs to C Program Control Structures
Control Structures
?

What will be printed if the following code is executed?
void main()
{
   int x=0;
   for( ; ; )
   {
      if( x++ == 4 ) break;
      continue;
   }
   printf("x=%d", x);
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Pratik Kokate
Pratik Kokate 8 years ago
Give me proper explanation about this question