#include <stdio.h> int main() { int i = 3; printf("%d", (++i)++); return 0; } What is the output of the above program? (A) 3 (B)… Read More
Category Archives: Quizzes
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
#include <stdio.h> #define PRINT(i, limit) do \ { \ if (i++ < limit) \ { \ printf("GeeksQuiz\n"); \ continue; \ } \ }while(0) int… Read More
#include <stdio.h> #define PRINT(i, limit) do \ { \ if (i++ < limit) \ { \ printf("GeeksQuiz\n"); \ continue; \ } \ }while(1) int… Read More
Predict the output of below program: #include <stdio.h> int main() { printf("%c ", "GeeksQuiz"[5]); return 0; } (A) Compile-time error (B) Runtime error (C) Q… Read More
Predict the output of the below program: #include <stdio.h> int main() { printf("%c ", 5["GeeksQuiz"]); return 0; } (A) Compile-time error (B) Runtime error… Read More
Predict the output of below program: #include <stdio.h> int main() { int arr[5]; // Assume base address of arr is 2000 and size of… Read More
Which one of the following is an application of Queue Data Structure? (A) When a resource is shared among multiple consumers. (B) When data is… Read More
Consider the following function that takes reference to head of a Doubly Linked List as parameter. Assume that a node of doubly linked list has… Read More
Which of the following points is/are true about Linked List data structure when it is compared with array (A) Arrays have better cache locality that… Read More
Predict the output of below program: #include <stdio.h> int main() { int arr[5]; // Assume that base address of arr is 2000 and… 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
#include <stdio.h> // Assume base address of "GeeksQuiz" to be 1000 int main() { printf(5 + "GeeksQuiz"); return 0; } (A) GeeksQuiz (B) Quiz (C)… Read More