What is an volatile variable?

Answers were Sorted based on User's Feedback



What is an volatile variable?..

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

What is an volatile variable?..

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

What is an volatile variable?..

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

What is an volatile variable?..

Answer / santhi

the variable which can be modified.

Is This Answer Correct ?    24 Yes 33 No

What is an volatile variable?..

Answer / mahendra giri

volatile variable is that which we can't change during
program execution tome

Is This Answer Correct ?    2 Yes 35 No

Post New Answer

More C Interview Questions

Expand the following LKB BKL FFG

0 Answers  


main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }

6 Answers  


Can I initialize unions?

0 Answers  


Differentiate between functions getch() and getche().

0 Answers  


Disadvantages of C language.

0 Answers   Impetus,






Explain heap and queue.

0 Answers   Aricent,


question-how to run a c programme.

6 Answers  


write an algorithm and a program to count the number of elements in a circularly singly linked list

1 Answers   Ignou,


What are enumerated types?

0 Answers  


What is the difference between text and binary modes?

0 Answers  


main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?

3 Answers   Excel,


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.

1 Answers  


Categories