What is the function of the keyword ‘volatile’ in C++?
Answer / nashiinformaticssolutions
A qualifier known as the volatile keyword can be used on a variable to let the compiler know that the value of the variable could change at any time. The primary goal of utilizing volatile is to stop source code optimizations on objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is realloc() and free()? What is difference between them?
What is private public protected in c++?
Explain mutable storage class specifier.
What is the use of setfill in c++?
What is the purpose of template?
How do you initialize a string in c++?
How would you use the functions randomize() and random()?
What is stream and its types in c++?
If we declare two macro with the same identifier without doing undef the first, what will be the result? eg: #define MAX_SIZE 100 #define MAX_SIZE 200 int table1[MAX_SIZE];
Why is c++ is better than c?
What is the need of a destructor? Explain with the help of an example.
When do we use copy constructors?