Content deleted Content added
minor |
fixed typo |
||
Line 34:
and the program will loop forever.
However, the address might represent a ___location that can be changed by other elements of the computer system. For example, it could be a [[hardware register]] of a device connected to the [[CPU]]. The value stored there could change at any time. Or, the variable may be modified by another [[thread (computer science)|thread]] or [[process (computing)|
To prevent the compiler from modifying code in this way, the volatile keyword is used in the following manner:
|