C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
volatile
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Keyword:   volatile
 
  Syntax:    volatile declarator
 
  Summary:   Type qualifier used to declare that an object can be
             modified in the program by something other than statements,
             such as the operating system or the hardware.
 
             Objects declared as volatile are not used in optimizations
             because their value can change at any time. The system always
             reads the current value of a volatile object at the point it
             is requested, even if the previous instruction asked for a
             value from the same object. Also, the value of the object is
             written immediately on assignment.
 
             One use of the volatile qualifier is to provide access to
             memory locations used by asynchronous processes such as
             interrupt handlers.
 
  See also:  const
                                    -♦-