Categories

Jun 19, 2019 in C++

Q:

Explain the purpose of the keyword volatile.

1 Answer

Jun 19, 2019

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

Click here to read more about C++
Click here to read more about Insurance

Related questions

Madanswer
Jun 18 in C++
Jun 19, 2019 in C++
Jun 9 in C++
...