When volatile can be used?

Answer Posted / mustafa

Volatile restricts the compiler in two ways
1-> No optimization algorithm should be applied to this
variable.
2-> When ever you need the value of the volatile variable
please take it from the memory.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java be faster than c++?

656


Can c++ do everything c can?

588


Is c++ an integer?

563


Explain the pure virtual functions?

620


Is c++ proprietary?

568






What is the full form nasa?

585


What is c++ and its features?

564


What is c++ try block?

570


Differentiate between late binding and early binding.

625


What is c++ & why it is used?

574


What do you mean by a template?

608


How does the copy constructor differ from the assignment operator (=)?

605


What is purpose of new operator?

587


How do you clear a set in c++?

589


What is isdigit c++?

557