What is a volatile variable in c++?

Answer Posted / nashiinformaticssolutions

A volatile variable indicates to the compiler that the variable can be changed at any time, preventing optimizations.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a constructor and how is it called?

785


Write about an iterator class?

818


Do class declarations end with a semicolon? Do class method definitions?

859


How do you flush std cout?

821


write a function signature with various number of parameters.

796


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

1730


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

830


Explain the difference between abstract class and interface in c++?

740


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

816


Can manipulators fall in love?

751


Does improper inheritance have a potential to wreck a project?

871


What can I safely assume about the initial values of variables which are not explicitly initialized?

811


What's the order in which the objects in an array are destructed?

1139


What is srand c++?

821


what do you mean by volatile variable?

780