Skip to main content

2 docs tagged with "const"

View all tags

const and volatile Qualifiers

CV-qualifiers (const and volatile) modify type behavior. const prevents modification; volatile prevents compiler optimization.

const Pointers

const with pointers creates three distinct scenarios. Understanding the difference prevents bugs and documents intent.