volatile [C++ Reference]
Keywords: keywords,volatile
Date: 2008-10-14T15:42:05-0700

[[volatile]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## volatile

The volatile keyword is an implementation-dependent modifier, used when declaring variables, which prevents the compiler from optimizing those variables. Volatile should be used with variables whose value can change in unexpected ways (i.e. through an interrupt), which could conflict with optimizations that the compiler might perform.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •