Converted from .HLP to .HTML by HLPTOHTML.

cc .HLP


The const data-type modifier restricts access to stored data. If you declare an object to be of type const, you cannot modify that object. The const data-type modifier can be used with the data-type modifier volatile or with any of the storage-class specifiers or modifiers. The following example declares the variable x to be a constant integer:

int const x;


The volatile data-type modifier prevents an object from being stored in a machine register, forcing it to be allocated in memory. This data type modifier is useful for declaring data that is to be accessed asynchronously. A device driver application often uses volatile data storage. Like const, you can specify the volatile data-type modifier with any of the storage-class specifiers or modifiers with the exception of the register storage class.