DornerWorks interview question

Define "volatile".

Interview Answer

Anonymous

13 Apr 2015

A volatile variable is one that will be changed outside of the current scope, like a timer variable. The "volatile" declaration prevents the variable from being removed from loops by the optimizer of the compiler.