LobstersFriday · May 22, 2026FREE

John Regehr's Integers in C Quiz

cquizundefined-behaviorintegers

John Regehr's Integers in C Quiz, hosted at acepace.net, is a set of multiple-choice questions designed to assess and deepen understanding of C integer semantics. The quiz covers topics such as undefined behavior from signed integer overflow, implicit type conversions, and the behavior of bitwise operations on signed types. Each question presents a code snippet and asks the user to predict the output or identify undefined behavior. The quiz is self-contained and does not require registration. A concrete consequence of misunderstanding these concepts is that developers may write code with latent bugs that can lead to security vulnerabilities, such as buffer overflows or incorrect logic in critical systems. The quiz serves as both a learning tool and a benchmark for C proficiency.

// why it matters

Misunderstanding C integer behavior leads to security vulnerabilities and undefined behavior in critical software.

Sources

Primary · Lobsters
▸ Read original at acepace.net

Like this? Get the next digest.