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
Difference between Shallow copy and Deep copy?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is the difference between #include
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Why doesnt long int work?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is sizeof array in c?
Difference between pass by reference and pass by value?
What is array in C
please give me some tips for the placement in the TCS.
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
What is the translation phases used in c language?
what do you mean by enumeration constant?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?