Question: what is the difference between normal variable and volatile?
Answer: Local Variable: This variable has a scope local to the function. Volatile Variable: volatile just tells the compiler or force the compiler to "not to do the optimization" for that variable. ... Originally Answered: What is the Difference between a Local Varible and a Volatile variable declared in a same function?