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
Write a Program to accept different goods with the number, price and date of purchase and display them
What is double pointer?
write a program for the normal snake games find in most of the mobiles.
What is a nested formula?
Explain how can I right-justify a string?
Is main is a keyword in c?
Define Spanning-Tree Protocol (STP)
How can I make it pause before closing the program output window?
how could explain about job profile
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What are the 32 keywords in c?
What is static memory allocation?
What is the difference between printf and scanf in c?
What is #pragma statements?