C Interview Questions Quizzes

The C questions interviewers love: predict the output, explain the gotcha, read the macro, recognise undefined behaviour and find the bug.

All levels 5 quizzes · 50 questions about 36 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 Output-Based C Questions Medium Predict what short C programs print, the classic interview warm-up. #output-prediction#interview 10 questions · ~6 min Not started Start
2 Tricky C Questions Hard Real C gotchas from interviews, where the obvious answer is wrong. #gotchas#interview 10 questions · ~8 min Not started Start
3 Preprocessor & Macros Medium Predict macro expansions and avoid the classic #macros#preprocessor 10 questions · ~6 min Not started Start
4 Undefined Behavior Hard Recognise undefined behaviour in C and understand why the compiler may do anything. #undefined-behavior#interview 10 questions · ~8 min Not started Start
5 C: Find the Bug Hard Read short C programs with a real bug, predict what they do and name the fix. #debugging#interview 10 questions · ~8 min Not started Start