Examveda
Examveda

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);
}

A. x=0

B. x=5

C. x=4

D. x=1

E. Error

Answer: Option B


This Question Belongs to C Program >> Control Structures

Join The Discussion

Comments ( 1 )

  1. Pratik Kokate
    Pratik Kokate :
    6 years ago

    Give me proper explanation about this question

Related Questions on Control Structures