What is an volatile variable?
Answers were Sorted based on User's Feedback
Answer / shruti
okies..
I really had no idea about this concept..
Can neone plz tell me how do we declare, such volatile
varibales??
Thanks..
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / harish
volatile variable tells the compiler not to optimize the
code at run time.
example:
volatile int a = 20; // variable a is declared as volatile.
For more information check this out...
http://www.programmersheaven.com/articles/pathak/article1.htm
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / manish
as on compiler optimize the code. and it take the variable
first in cache and then in resisters.
so in volatile variables what the value is stored at first
time it will be stored in resister but when u want to
change the values of that volatiles variables.it will not
change.
| Is This Answer Correct ? | 3 Yes | 6 No |
volatile variable is that which we can't change during
program execution tome
| Is This Answer Correct ? | 2 Yes | 35 No |
how is the examination pattern?
How can I access an I o board directly?
What is function pointer c?
Explain how can I convert a string to a number?
Can include files be nested?
What are the differences between new and malloc in C?
In c language can we compile a program without main() function?
Explain threaded binary trees?
What is the scope of static variable in c?
what is used instead of pointers in java than c?
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
i got 75% in all semester am i eligible for your company