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 |
Explain that why C is procedural?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
I have one doubt. What does below statement mean? #define sizeof(operator) where operator can be int or float etc. Does this statement meaningful and where it can be used?
Can u return two values using return keyword? If yes, how? If no, why?
What are the application of c?
In C programming, what command or code can be used to determine if a number of odd or even?
What is the scope of static variable in c?
What are linked lists in c?
WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS
Explain how many levels deep can include files be nested?
what is the output of the program?? #include<stdio.h> main ( ) { int a=010,sum=0,tracker: for(tracker=0;tracker<=a;tracker++) sum+=tracker; printf(ā %d\nā,sum); } what is the difference between a=10 and a=010??
What is c++ used for today?