What is the volatile c++ keyword?
Anonymous
"Answer: It's compiler hint, asking the compiler not to optimized away the labeled variable," is only a half answer. Volatile tells the program a value can be changed at any time, so it can't cache the value. It forces the program to retrieve the value from memory. Concerning it's use and possible uses, things can get complex in C++.
Check out your Company Bowl for anonymous work chats.