100 C Programming MCQs with Answers and Explanations
These C programming MCQs contain exactly 100 questions, ten in each of ten topic groups. The baseline is C17; questions about a specific library, tool or target say so. Every question has one best answer and an explanation. This is a study quiz, not a timed assessment or certification.

Jump to the 100-question practice quiz. Choose answers using native radio buttons, then select Check score. Unanswered questions count as incorrect in the total but are reported separately. Answers can be expanded at any time for study. Changing an answer clears the old score until you check again. Reset quiz clears selections and returns focus to the first question. Selections stay only in this page’s memory and are lost on reload; no login or server storage is used.
Topics and study order
| Group | Questions |
|---|---|
| Fundamentals | 1–10 |
| Types and conversions | 11–20 |
| Expressions and control flow | 21–30 |
| Functions and storage | 31–40 |
| Arrays and strings | 41–50 |
| Pointers and allocation | 51–60 |
| Structures and preprocessing | 61–70 |
| Input, files and debugging | 71–80 |
| Algorithms and complexity | 81–90 |
| Bits, concurrency and portability | 91–100 |
Without JavaScript, the full question set and expandable answers remain readable, but automatic scoring is unavailable. Tab reaches controls, arrow keys move within native radio groups, and Space selects an option or activates a focused disclosure. Avoid using one observed compiler result to justify a claim about undefined behavior.
Warm-up: predict a defined result
#include <stdio.h>
int main(void) {
int a = 7, b = 2;
printf("Integer division: %d\n", a / b);
printf("Floating division: %.1f\n", (double)a / b);
return 0;
}
Run integer and floating division online
Expected output
Reference output for the displayed program, not a live execution result.
Integer division: 3
Floating division: 3.5
The cast changes the left operand before division, producing floating-point division. Casting the result of integer division afterward would not recover the discarded fractional part. The reference output is not a live run; use the link to open the complete program.
Review after the quiz
Use 30 interview questions and lab viva practice for explanations aloud, the sorting guide for algorithm comparisons, and embedded C interviews for hardware-specific discussion. These questions have no claimed pass threshold or PDF download. Revisit missed concepts before repeating the quiz.