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

Answer Posted / ravi.jnv

Volatile is to inform the compiler that not to optimise
code.
for ex:
int a = port1;
int b = port1;
int c = port1;

compiler may convert it as
int a=b=c=port1;

so avoid it , u have to use volatile keyword.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most efficient way to count the number of bits which are set in an integer?

1066


What are structural members?

1016


How can I ensure that integer arithmetic doesnt overflow?

1173


string reverse using recursion

2475


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

2081


what is the format specifier for printing a pointer value?

1025


Can a pointer be volatile in c?

992


What is #pragma statements?

1102


explain what is a newline escape sequence?

1094


Do pointers store the address of value or the actual value of a variable?

1083


Array is an lvalue or not?

1130


Compare and contrast compilers from interpreters.

1121


Tell me can the size of an array be declared at runtime?

1051


Are c and c++ the same?

1058


How do I use void main?

1092