const type qualifier

Each individual type in the C type system has several qualified versions of that type, corresponding to one, two, or all three of the const, volatile , and, for pointers to object types, restrict qualifiers. This page describes the effects of the const qualifier.

# Notes

C adopted the const qualifier from C++, but unlike in C++, expressions of const-qualified type in C are not constant expressions ; they may not be used as case labels or to initialize static and thread storage duration objects, enumerators , or bit-field sizes. When they are used as array sizes, the resulting arrays are VLAs.

# See also