ProAnswers.org

what is volatile variables and where they are used?

what is volatile variables and where they are used?

2 Likes

volatile variables are not optimized by the compiler, compiler assumes that their value can be changed at any time and latest value is used where ever that variable is accessed in the code.