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
Point out the error, if any in the program.

#include<stdio.h>
int main()
{
int P = 10;
switch(P)
{
case 10:
printf("Case 1");

case 20:
printf("Case 2");
break;

case P:
printf("Case 2");
break;
}
return 0;
}

Q.2
What will be the output of the program?


#include<stdio.h>
int main()
{
int i=2;
printf("%d, %d\n", ++i, ++i);
return 0;
}



Q.3
 In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators



A.true
B.false

Let me learn what you think :)