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
Can c++ be faster than c?
What is a loop? What are different types of loops in c++?
What is the difference between passing by reference and passing a reference?
You want to link a c++ program to c functions. How would you do it?
Who discovered c++?
How does a C++ structure differ from a C++ class?
How does the copy constructor differ from the assignment operator (=)?
When does the c++ compiler create temporary variables?
What is the keyword auto for?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What do you mean by friend class & friend function in c++?
What is a memory leak c++?
What is doubly linked list in c++?
What are the advantages of inheritance in c++?
Why do we need templates?