Skip to content

Tag Archives: Loops & Control Structure

Predict the output of the below program:  C #include <stdio.h>   #define EVEN 0 #define ODD 1   int main() {     int i = 3;… Read More
C #include <stdio.h>   int main() {     int i = 3;     switch (i) {         case 1:             printf("Geeks");             break;         case 1+2:             printf("Quiz");             break;         default:             printf("GeeksQuiz");     }… Read More
What is the output of the below program?  C #include <stdio.h>   int main() {     int i = 2;     switch (i) {         case 0:             printf("Geeks");… 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