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
What is function prototyping?
Explain one-definition rule (odr).
What information can an exception contain?
What is a base class?
What is the cout in c++?
What is the oldest programming language?
Explain the term memory alignment?
Is c++ vector a linked list?
Out of fgets() and gets() which function is safe to use and why?
Explain the use of virtual destructor?
What is a far pointer? where we use it?
What are enumerations?
How would you implement a substr() function that extracts a sub string from a given string?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What is c++ prototype?