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...

When volatile can be used?

Answer Posted / mustafa

Volatile restricts the compiler in two ways
1-> No optimization algorithm should be applied to this
variable.
2-> When ever you need the value of the volatile variable
please take it from the memory.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Evaluate !(1&&1||1&&0) a) Error b) False c) True

1145


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

2521


Can a constructor return a value?

1160


To what does “event-driven” refer?

1000


Do you know about C++ 11 standard?

1034


How to allocate memory dynamically for a reference?

992


what is COPY CONSTRUCTOR and what is it used for?

1021


What are protected members in c++?

1073


What is insertion sorting?

1061


Why is it necessary to use a reference in the argument to the copy constructor?

1063


What are the advantages of early binding?

1011


How do you flush std cout?

1034


How many types of classes are there in c++?

983


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2423


What is the role of C++ shorthand's?

1222