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 |
Which type of language is c?
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }
int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?
What does node * mean?
Explain what is meant by high-order and low-order bytes?
Write a function that will take in a phone number and output all possible alphabetical combinations
How would you print out the data in a binary tree, level by level, starting at the top?
What are two dimensional arrays alternatively called as?
What are the application of c?
There seem to be a few missing operators ..
simple program of graphics and their output display
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)