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

it means this value will be changed unexpectedly. everytime
the program wants to use it, it can only be got from memory
but not from the register directly.

if you want a variable can be accessed by several threads,
you need this key word, like in ISR program, etc.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What relational operators if statements in c++?

1233


What is the keyword auto for?

1086


Explain the extern storage classes in c++.

1104


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1205


What is the use of "new" operator?

1180


When should I use unitbuf flag?

1068


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

1244


how to explain our contribution in the project?

3755


How can I improve my c++ skills?

1194


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

1051


What is the type of this pointer in c++?

1112


When should we use container classes instead of arrays?

1059


Explain the advantages of using friend classes.

1225


What are the steps in the development cycle?

1160


When must you use a pointer rather than a reference?

1080