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 virtual table?

823


How do I run a program in notepad ++?

809


What is polymorphism & list its types in c++?

808


What is a pointer how and when is it used?

798


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

789


Mention the ways in which parameterized can be invoked. Give an example of each.

799


what is the difference between overloading & overriding? give example.

803


What character terminates all character array strings a) b) . c) END

972


what do you mean by volatile variable?

784


What is meant by a delegate?

805


Where the memory to the static variables is allocated?

779


Can we use struct in c++?

780


Which coding certification is best?

778


How does a copy constructor differs from an overloaded assignment operator?

782


What is the difference between equal to (==) and assignment operator (=)?

789