Uber Interview Question

What does the volatile keyword do?

Interview Answer

Anonymous

Sep 27, 2018

It forces the compiler to not optimize a variable and to always read it from memory.