Explore topic-wise MCQs in C Programming.

This section includes 102 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.

101.

What will be the output of the program? #include int main() { const char *s = ""; char str[] = "Hello"; s = str; while(*s) printf("%c", *s++); return 0; }

A. Error
B. H
C. Hello
D. Hel
Answer» D. Hel
102.

What will be the output of the program? #include int main() { int y=128; const int x=y; printf("%d\n", x); return 0; }

A. 128
B. Garbage value
C. Error
D. 0
Answer» B. Garbage value