Memory & Structs Quizzes

Manage memory by hand and build your own data types in C: malloc and free, the classic memory bugs, structs, unions, enums and bit tricks.

Intermediate 5 quizzes · 50 questions about 31 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 malloc, calloc & free Medium Allocate, resize and release heap memory in C without losing track of it. #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. #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. #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. #unions#enums 10 questions · ~6 min Not started Start
5 Bitwise Operators Medium Set, clear, toggle and test bits with &, |, ^, ~ and the shift operators. #bitwise#output-prediction 10 questions · ~6 min Not started Start