in C Plus Plus by
Q:

Explain the purpose of the keyword volatile.

▼ Show 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.

Learn More with Madanswer

Related questions

+2 votes
asked Jan 21 in C Plus Plus by SakshiSharma
...