React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in C++ by

Explain the purpose of the keyword volatile.

Click here to read more about DevOps

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.

Related questions

Madanswer
0 votes
asked Jun 18 in C++ by Robindeniel
+2 votes
asked Jun 19, 2019 in C++ by kamalkhandelwal29
...