What is optimization in c++?
when using volatile.optimization is not possible..what does
this mean?



What is optimization in c++? when using volatile.optimization is not possible..what does this mean..

Answer / sindhu

In C, the keyword Volatile tells the compiler that the value
of that variable may change unexpectedly(not using the code
that is found nearby).So the optimizer must do nothing to
the variable to make the code efficient.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

what are the events occur in intr activated on interrupt vector table

0 Answers   HGS,


What is the benefit of learning c++?

0 Answers  


Is c++ the best programming language?

0 Answers  


How can virtual functions in c++ be implemented?

0 Answers  


Is turbo c++ free?

0 Answers  


You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.

4 Answers  


What things would you remember while making an interface?

0 Answers  


What is setbase c++?

0 Answers  


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

0 Answers  


What is enum class in c++?

0 Answers  


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

0 Answers  


how to swap two numbers with out using temp variable

12 Answers   Global eProcure, TCS,


Categories