Question 31
<br>
#include < stdio.h ><br>
int main()<br>
{<br>
int i; <br>
goto LOOP;<br>
for (i = 0 ; i < 10 ; i++)<br>
{<br>
printf(\"GeeksQuiz \n\");<br>
LOOP:<br>
break;<br>
}<br>
return 0;<br>
}<br>
Question 32
<br>
switch (controlling_expression)<br>
{<br>
case label1:<br>
/*label1 statements*/<br>
break;<br>
case label2:<br>
/*label1 statements*/<br>
break;<br>
default:<br>
/*Default statements*/<br>
}<br>
Question 34
if(a > b) if(b > c) s1; else s2;s2 will be executed if
Question 35
Question 36
main() { static int x[] = {1,2,3,4,5,6,7,8} int i; for (i=2; i<6; ++i) x[x[i]]=x[i]; for (i=0; i<8; ++i) printf("%d", x[i]); }
Question 38
Question 39
#includeint main() { int index; for(index=1; index<=5; index++) { printf("%d", index); if (index==3) continue; } }
Question 40
#includeFor the program fragment above, which of the following statements about the variables i and j must be true after execution of this program? [!(exclamation) sign denotes factorial in the answer]main() { int i, j , x ; scanf("%d", &x); i = 1 ; j = 1; while ( i< 10 ) { j = j * i; i = i + 1; if (i == x) break ; } }
There are 45 questions to complete.