What does volatile mean?
Anonymous
Volatile tells the compiler to not optimize the variable. As mentioned by in the previous answer, the data is read from the register and not the cache. This is used when a variable's value might change unpredictably and out of the control of code.
Check out your Company Bowl for anonymous work chats.