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 do you mean by volatile and mutable keywords used in c++?

584


Show the declaration for a static member variable.

534


Where must the declaration of a friend function appear?

539


What is c++ good for?

589


Write about c++ storage classes?

757






Write about the scope resolution operator?

619


Explain deep copy?

611


Is c++ a programming language?

598


Distinguish between new and malloc and delete and free().

575


Will c++ be replaced?

555


How is c++ different from java?

563


Is set c++?

573


What are move semantics?

675


What do the keywords volatile and mean mutable?

610


Is swift better than c++?

542