I l @ ve RuBoard |
As you've seen, C++ allows you to specify a number of qualifiers for variable declarations. Qualifiers may be thought of as adjectives that describe the type that follows . Table 5-2 summarizes the various qualifiers; they are explained in detail in the following sections. Table 5-2. Qualifiers and simple types
5.10.1 SpecialThe volatile keyword is used for specialized programming such as I/O drivers and shared memory applications. It is an advanced modifier whose use is far beyond the scope of this book.
5.10.2 ConstantThe const keyword indicates a value that cannot be changed.
5.10.3 Storage ClassThe class of a variable is discussed in detail in Chapter 9. A brief description of the various classes follows:
5.10.4 SizeThe size qualifier allows you to select the most efficient size for the variable.
5.10.5 SignNumbers can be signed or unsigned . This qualifier applies only to char and int types. Floating-point numbers are always signed. The default is signed for int and undefined for characters . 5.10.6 TypeThis specifies the type of the variable. Simple types include:
|
I l @ ve RuBoard |