where do we use volatile keyword?



where do we use volatile keyword?..

Answer / rekha_sri

* A variable should be declared volatile whenever its value
could change unexpectedly.

* A volatile qualifier must be used when reading the contents
of a memory location whose value can change unknown to the
current program.

* A volatile qualifier must be used for shared data modified
in signal handlers or interrupt service routines.

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More C Interview Questions

Why ca not I do something like this?

0 Answers  


What is integer constants?

0 Answers  


Explain what is wrong with this program statement?

0 Answers  


Why is #define used?

0 Answers  


what is C?

9 Answers   Syntel,






How to print "I Love My India" without using semi colon?

4 Answers  


How do you do dynamic memory allocation in C applications?

0 Answers  


int *p=20; if u print like dis printf("%d",p); o\p:- 20; how is it possible? plz give me the explanation.

15 Answers   Global Edge,


Find errors (1) m = ++a*5; (2) a = b ++ -c*2; (3)y = sqrt (1000);

5 Answers  


how to find anagram without using string functions using only loops in c programming

1 Answers   Mind Tree, TCS,


What is an arrays?

0 Answers  


yogesh patil in dell

3 Answers   DELL,


Categories