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

What is I ++ in c programming?

1113


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

2297


Why main is used in c?

1072


What are the modifiers available in c programming language?

1219


What is the right type to use for boolean values in c? Is there a standard type?

1009


How do I read the arrow keys? What about function keys?

1082


How can I open a file so that other programs can update it at the same time?

1181


What are the general description for loop statement and available loop types in c?

1122


What is huge pointer in c?

1082


Explain the use of #pragma exit?

1172


Why can’t constant values be used to define an array’s initial size?

1374


Where we use clrscr in c?

1131


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1362


What is #pragma statements?

1095


why wipro wase

2308