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 |
Expand the following LKB BKL FFG
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
Can I initialize unions?
Differentiate between functions getch() and getche().
Disadvantages of C language.
Explain heap and queue.
question-how to run a c programme.
write an algorithm and a program to count the number of elements in a circularly singly linked list
What are enumerated types?
What is the difference between text and binary modes?
main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.