Jun 19, 2019 in C Plus Plus
Q:

Explain the purpose of the keyword volatile.

1 Answer

0 votes
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 Loan/Mortgage
Click here to read more about Insurance

Related questions

+2 votes
Jan 21 in C Plus Plus
...