Domanda di colloquio di Uber

What does the volatile keyword do?

Risposta di colloquio

Anonimo

27 set 2018

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