C Programming :: Control Instructions
-
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int main() { int a = 300, b, c; if(a >= 400) b = 300; c = 200; printf("%d, %d, %d\n", a, b, c); return 0; } -
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int main() { int i = 5; while(i-- >= 0) printf("%d,", i); i = 5; printf("\n"); while(i-- >= 0) printf("%i,", i); while(i-- >= 0) printf("%d,", i); return 0; } -
What will be the output of the program?
#include
int main() { int i=3; switch(i) { case 1: printf("Hello\n"); case 2: printf("Hi\n"); case 3: continue; default: printf("Bye\n"); } return 0; } -
What will be the output of the program?
#include
-
What will be the output of the program?
#include
int main() { int i=4; switch(i) { default: printf("This is default\n"); case 1: printf("This is case 1\n"); break; case 2: printf("This is case 2\n"); break; case 3: printf("This is case 3\n"); } return 0; } -
What will be the output of the program?
#include
int main() { int i = 1; switch(i) { printf("Hello\n"); case 1: printf("Hi\n"); break; case 2: printf("\nBye\n"); break; } return 0; } -
What will be the output of the program?
#include
int main() { char j=1; while(j 5) { printf("%d, ", j); j = j+1; } printf("\n"); return 0; } -
What will be the output of the program?
#include
int main() { int x, y, z; x=y=z=1; z = ++x || ++y && ++z; printf("x=%d, y=%d, z=%d\n", x, y, z); return 0; }