C - Operators - Discussion

You Are Here :: Home > C > Operators - Discussion

 



Q.

int i = 4;
switch (i)
{
default: ;
case 3:
i += 5;
if ( i == 8)
{
i++;
if (i == 9) break;
i *= 2;
}
i -= 4;
break;
case 8:
i += 5;
break;
}
printf("i = %d\n", i);
What will the output of the sample code above be?

A. i = 5 B. i = 6
C. i = 7 D. i = 8

Answer: Option A
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion