What does volatile int status; tell the compiler?
volatile stops the compiler from caching the value or removing "redundant" accesses – needed for hardware registers and signal-handler flags. It does not make access atomic or thread-safe.
Declarations and Initializations · Exercise 1 of 4
Twelve multiple-choice questions on declaration vs definition, extern and prototypes, linkage, identifier rules, literal types, initializers, volatile and C23. Pick an option to check your answer instantly.
What does volatile int status; tell the compiler?
volatile stops the compiler from caching the value or removing "redundant" accesses – needed for hardware registers and signal-handler flags. It does not make access atomic or thread-safe.
Which statement about C23's nullptr is true?
NULL may be defined as 0 or ((void*)0), which causes surprises with variadic functions and _Generic. nullptr always has pointer meaning; int *p = nullptr; declares a null pointer.
Timed online tests with instant scores and explanations.