NEW AND EXCLUSIVE : GO TO THE ONLINE TEST PAGE AND TEST YOURSELF THROUGH EXAMINATION

What will be the Output Of the Following C-codes?

Q.1
How many times the program will print "TheNextLevel" ?

#include <stdio.h>
int main()
{
printf("TheNextLevel");
main();
return 0;
}


Q.2
How many times the while loop will get executed if a short int is 2 byte wide?


#include<stdio.h>

int main()
{
int j=1;
while(j <= 255) 

 { 
 printf("%c %d\n", j, j); 
 j++; 
 } 
 return 0; 



 Q.3 Which of the following errors would be reported by the compiler on compiling the program given below? 

 #include<stdio.h>
int main()
{
int a = 5;
switch(a)
{
case 1:
printf("First");

case 2:
printf("Second");

case 3 + 2:
printf("Third");

case 5:
printf("Final");
break;

}
return 0;
}

Let me learn what you think :)