Domanda di colloquio di DornerWorks

Define "volatile".

Risposta di colloquio

Anonimo

13 apr 2015

A volatile variable is one that will be changed outside of the current scope, like a timer variable. The "volatile" declaration prevents the variable from being removed from loops by the optimizer of the compiler.