Const Pointer Quiz: `const int *`, `int * const`, and `const int * const` in C/C++
Test your understanding of `const` with pointers in C/C++: assignments, modification rules, function parameters, and common mistakes.
Quizzes
Choose a quiz and test your understanding of a focused concept.
Test your understanding of `const` with pointers in C/C++: assignments, modification rules, function parameters, and common mistakes.
Learn when to use #include <...> vs #include "..." in C and C++ with this quiz on header search paths, conventions, mistakes, and examples.
Test your understanding of fast SQLite bulk inserts in C using transactions, prepared statements, PRAGMAs, and index timing.
Test your understanding of setting, clearing, and toggling single bits in C with masks, bitwise operators, pitfalls, and examples.
Test your understanding of why C code usually should not cast malloc, plus sizeof patterns, NULL checks, and common mistakes.
Test your understanding of `x-- > 0` in C and C++: parsing, post-decrement behavior, loop output, pitfalls, and clearer alternatives.
Test your understanding of `:-!!(e)` in C, bit-field width tricks, compile-time errors, `sizeof`, and Linux-style build bug macros.
Test your understanding of C trigraphs, `??!??!`, logical OR, and short-circuit evaluation with practical code questions.
Test your understanding of `extern "C"` in C++: C linkage, name mangling, C headers, common mistakes, and real interop use cases.
Test your understanding of why `a[5]` equals `5[a]` in C using array indexing, pointer arithmetic, common mistakes, and examples.