Volatile (keyword): Difference between revisions

m
[unchecked revision][unchecked revision]
Line 5:
== The basics ==
 
The volatile keyword can be used in type definitions as well as function arguments and, variable definitions and typecasts. Similar to the '''const''' keyword, it either makes the variable itself or the data it points to ''volatile'', or both.
 
/* Ensures the changes to/reads from x are always performed */
Anonymous user