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 / s.m.faisal

volatile reduces the optimization .optimization means compiler should not make out that the variable has not changed its value so it reads the value directly from the register.
So while using volatile keyword compiler will directly access the variable from the memory not from the register bcz the value of the variable can be changed outside or inside the program.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of main( ) in c language?

1184


Is there any demerits of using pointer?

1114


what are # pragma staments?

2077


Is c dynamically typed?

1201


Differentiate between a for loop and a while loop? What are it uses?

1233


What is c variable?

1095


Why is c not oop?

1038


Define macros.

1327


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1325


What is a rvalue?

1260


what are enumerations in C

1217


What is auto keyword in c?

1249


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2230


What is the difference between union and anonymous union?

1373


What is conio h in c?

1095