Pregunta de entrevista de Uber

What does the volatile keyword do?

Respuesta de la entrevista

Anónimo

27 sep 2018

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