#include <stdio.h> int main() { int i; if (printf("0")) i = 3; else i = 5; printf("%d", i); return 0; } Predict the output of… Read More
Tag Archives: C-Loops & Control Structure
Predict the output of the below program: #include <stdio.h> #define EVEN 0 #define ODD 1 int main() { int i = 3; switch (i &… Read More
#include <stdio.h> int main() { int i = 3; switch (i) { case 0+1: printf("Geeks"); break; case 1+2: printf("Quiz"); break; default: printf("GeeksQuiz"); } return 0;… Read More
What is the output of the below program? #include <stdio.h> int main() { int i = 0; switch (i) { case '0': printf("Geeks"); break; case… Read More
C #include <stdio.h> #define PRINT(i, limit) do \\ { \\ if (i++ < limit) \\ { \\ printf(\"GeeksQuiz\\n\"); \\ continue; \\ } \\ }while(0); … Read More
#include <stdio.h> int main() { int i = 1024; for (; i; i >>= 1) printf("GeeksQuiz"); return 0; } How many times will GeeksQuiz… Read More