in C Plus Plus by

Explain the purpose of the keyword volatile.

1 Answer

0 votes
by

Declaring a variable volatile directs the compiler that the variable can be changed externally. Hence avoiding compiler optimization on the variable reference.

...