0 votes
in C Plus Plus by
What is volatile keyword?

1 Answer

0 votes
by

The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler. 
Objects declared as volatile are omitted from optimization because their values can be changed by code outside the scope of current code at any time.

Related questions

+2 votes
0 votes
asked Jan 12 in C Plus Plus by GeorgeBell
0 votes
asked Jan 12 in C Plus Plus by GeorgeBell
...