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 volatile in c language?

Answer Posted / selvakumar vedhachalam

It is nothing but telling to compiler that this variable
will change its value at anytime by means of anything and
compiler should not make any assumption about this variable.

Normally compiler will assume that some variable will be
constant during runtime. This may lead error in checking a
registor value repeatedly. Because the register value may
be changed by anything. So for these kind of variables
should be declared 'volatile' and it be checked each time
appears in the code with out any assumption.

Is This Answer Correct ?    135 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to make a scientific calculater ?

2076


What are the types of unary operators?

1192


What happens if you free a pointer twice?

1087


How do shell structures work?

1120


What is pre-emptive data structure and explain it with example?

3735


Why malloc is faster than calloc?

1069


How can you find the exact size of a data type in c?

1005


What is extern keyword in c?

1137


Explain the difference between malloc() and calloc() in c?

1054


How do you view the path?

1132


What is the difference between functions getch() and getche()?

1098


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1973


What are the types of macro formats?

1126


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2185


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

2346