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
What is I ++ in c programming?
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
Why main is used in c?
What are the modifiers available in c programming language?
What is the right type to use for boolean values in c? Is there a standard type?
How do I read the arrow keys? What about function keys?
How can I open a file so that other programs can update it at the same time?
What are the general description for loop statement and available loop types in c?
What is huge pointer in c?
Explain the use of #pragma exit?
Why can’t constant values be used to define an array’s initial size?
Where we use clrscr in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is #pragma statements?
why wipro wase