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.



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

Answer / 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

More C++ General Interview Questions

sizeof - is it a function or operator?

6 Answers   Honeywell,


What are protected members in c++?

0 Answers  


How would you use the functions sin(), pow(), sqrt()?

0 Answers  


What is difference between malloc()/free() and new/delete?

0 Answers  


Why do we need constructors in c++?

0 Answers  


What is a .lib file in c++?

0 Answers  


differance between copy & clon

1 Answers   Microsoft,


How would you find out if a linked-list is a cycle or not?

0 Answers  


What is c++ iterator?

0 Answers  


How do you add an element to a set in c++?

0 Answers  


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

0 Answers  


Is c++ faster than c?

0 Answers  


Categories