- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
C Programming Quizzes
30 C quizzes with 300 multiple-choice questions, from easy to hard. Every answer is explained.
30 quizzes · 300 questions
6 categories
C17
C categories
4 Easy1 Medium
Data Types & sizeof
printf & scanf
Operators & Integer Division
+2
0 of 5 passed
Start
1 Easy3 Medium1 Hard
Functions & Prototypes
Pass by Value & Pointers
Recursion
+2
0 of 5 passed
Start
1 Easy3 Medium1 Hard
Arrays
Strings & the Null Terminator
string.h Functions
+2
0 of 5 passed
Start
1 Easy2 Medium2 Hard
Pointer Basics
Pointer Arithmetic
Pointers & Arrays
+2
0 of 5 passed
Start
1 Easy3 Medium1 Hard
malloc, calloc & free
Memory Bugs
Structs & typedef
+2
0 of 5 passed
Start
2 Medium3 Hard
Output-Based C Questions
Tricky C Questions
Preprocessor & Macros
+2
0 of 5 passed
Start
matching quizzes
1
Data Types & sizeof
Easy
Check what you know about C's basic types, their sizes and what sizeof really measures.
C · C Basics
#types#sizeof
10 questions · ~5 min
Not started
Start
2
printf & scanf
Easy
Format output with printf and read input safely with scanf.
C · C Basics
#io#formatting
10 questions · ~5 min
Not started
Start
3
Operators & Integer Division
Easy
Predict arithmetic results in C, from integer division and % to ++ and precedence.
C · C Basics
#operators#integer-division
10 questions · ~5 min
Not started
Start
4
Type Casting & Integer Promotion
Medium
See how C converts between types, from explicit casts to the hidden promotions in every expression.
C · C Basics
#casting#gotchas
10 questions · ~6 min
Not started
Start
5
if, switch & Loops
Easy
Trace if, switch, for, while and do-while in C, including switch fall-through.
C · C Basics
#loops#conditions#switch
10 questions · ~5 min
Not started
Start
1
Functions & Prototypes
Easy
Define, declare and call C functions, and know why prototypes matter.
C · Functions & Scope
#functions#prototypes
10 questions · ~5 min
Not started
Start
2
Pass by Value & Pointers
Medium
Understand why C functions get copies, and how pointers let them change the caller's variables.
C · Functions & Scope
#functions#pointers
10 questions · ~6 min
Not started
Start
3
Recursion
Medium
Trace recursive C functions, from factorial and Fibonacci to the order of work around the call.
C · Functions & Scope
#recursion#functions
10 questions · ~6 min
Not started
Start
4
static & Storage Classes
Hard
Master static locals, internal linkage, extern and register, the C storage classes interviewers love.
C · Functions & Scope
#storage-classes#static
10 questions · ~8 min
Not started
Start
5
Scope & Lifetime
Medium
Know where each C variable can be used and how long it lives, from blocks to globals.
C · Functions & Scope
#scope#lifetime
10 questions · ~6 min
Not started
Start
1
Arrays
Easy
Declare, initialize, loop over and pass C arrays without surprises.
C · Arrays & Strings
#arrays#basics
10 questions · ~5 min
Not started
Start
2
Strings & the Null Terminator
Medium
See how C stores text as char arrays ending in
'\0', and what that means for size and printing.
C · Arrays & Strings
#strings#null-terminator
10 questions · ~6 min
Not started
Start
3
string.h Functions
Medium
Use
strlen, strcpy, strcat, strcmp, strchr and friends correctly, and know their traps.
C · Arrays & Strings
#strings#string-h
10 questions · ~6 min
Not started
Start
4
2D Arrays
Medium
Index, initialize, size and pass two-dimensional arrays in C.
C · Arrays & Strings
#arrays#2d-arrays
10 questions · ~6 min
Not started
Start
5
Buffer Overflows & Bounds
Hard
Spot out-of-bounds reads and writes in C, and the habits and tools that prevent them.
C · Arrays & Strings
#security#arrays
10 questions · ~8 min
Not started
Start
1
Pointer Basics
Easy
Take addresses with
&, follow them with * and change variables through pointers.
C · Pointers
#pointers#basics
10 questions · ~5 min
Not started
Start
2
Pointer Arithmetic
Medium
Move pointers through arrays with
+, -, ++ and subtraction, and read *p++ correctly.
C · Pointers
#pointers#pointer-arithmetic
10 questions · ~6 min
Not started
Start
3
Pointers & Arrays
Medium
See how array names turn into pointers, where they do not, and why
a[i] equals *(a + i).
C · Pointers
#pointers#arrays
10 questions · ~6 min
Not started
Start
4
Pointer to Pointer
Hard
Use
int ** to change a caller's pointer, build dynamic tables and walk arrays of strings.
C · Pointers
#pointers#double-pointers
10 questions · ~8 min
Not started
Start
5
Function Pointers
Hard
Store functions in variables and arrays, pass them as callbacks and read their declarations.
C · Pointers
#pointers#functions
10 questions · ~8 min
Not started
Start
1
malloc, calloc & free
Medium
Allocate, resize and release heap memory in C without losing track of it.
C · Memory & Structs
#memory#heap
10 questions · ~6 min
Not started
Start
2
Memory Bugs
Hard
Spot leaks, double frees, use after free and other heap bugs in short C programs.
C · Memory & Structs
#memory#debugging
10 questions · ~8 min
Not started
Start
3
Structs & typedef
Easy
Group related data with structs, initialise them and give them short names with typedef.
C · Memory & Structs
#structs#typedef
10 questions · ~5 min
Not started
Start
4
Unions & Enums
Medium
Name your constants with enums and share storage between members with unions.
C · Memory & Structs
#unions#enums
10 questions · ~6 min
Not started
Start
5
Bitwise Operators
Medium
Set, clear, toggle and test bits with &, |, ^, ~ and the shift operators.
C · Memory & Structs
#bitwise#output-prediction
10 questions · ~6 min
Not started
Start
1
Output-Based C Questions
Medium
Predict what short C programs print, the classic interview warm-up.
C · C Interview Questions
#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.
C · C Interview Questions
#gotchas#interview
10 questions · ~8 min
Not started
Start
3
Preprocessor & Macros
Medium
Predict macro expansions and avoid the classic
C · C Interview Questions
#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.
C · C Interview Questions
#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.
C · C Interview Questions
#debugging#interview
10 questions · ~8 min
Not started
Start
No quiz matches. Try another word or tag.
Popular this week
- 1 Type Casting & Integer Promotion MediumC Basics#casting#gotchas
- 2 Pass by Value & Pointers MediumFunctions & Scope#functions#pointers
- 3 Recursion MediumFunctions & Scope#recursion#functions
- 4 Scope & Lifetime MediumFunctions & Scope#scope#lifetime
- 5 Strings & the Null Terminator MediumArrays & Strings#strings#null-terminator