Why is volatile needed in C? What is it used for? What will it do?
volatile
Volatile is also useful, when you want to force the compiler not to optimize a specific code sequence (e.g. for writing a micro-benchmark).