Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of volatile keyword in c++? Give an example.

Answer Posted / hrpynux@gmail.com

The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler. Objects declared as volatile are omitted from optimization because their values can be changed by code outside the scope of current code at any time.

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 class definition?

1120


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1104


List the advantages of inheritance.

1184


What is doubly linked list in c++?

1129


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3704


Differentiate between a constructor and a destructor in c++.

1056


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

2053


Which function should be used to free the memory allocated by calloc()?

1067


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1114


What are the advantages of using typedef in a program?

1183


What is a constructor in c++ with example?

1185


What is static function? Explain with an example

1131


Should you pass exceptions by value or by reference?

1183


What is scope operator in c++?

1133


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

1234