Type Qualifiers
`const`, `volatile`, `restrict` and `_Atomic` add rules to a type.
Easy
const — read-only through this name; volatile — may change outside the program (hardware registers); restrict — this pointer is the only way to reach the object (enables optimisation); _Atomic — indivisible access.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.