When volatile can be used?

Answer Posted / reejusri

One more thing i want to add in above answer that is if
compiler sees keyword volatile it skips that variable from
optimization of code, becasue since it is very dymanic in
nature and to manage such type of variable for
optimaization is costly.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is problem with overriding functions?

611


What is pointer to array in c++?

621


Explain dangling pointer.

682


Explain what is polymorphism in c++?

628


What does scope resolution operator do?

602






Can a class be static in c++?

572


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

681


What is #include sstream?

624


What is this pointer in c++?

734


Explain the static storage classes in c++.

709


Is linux written in c or c++?

555


What is a multiset c++?

553


Mention the storage classes in c++.

647


What are the benefits of pointers?

594


Is swift a good first language?

588