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

how can use subset in c program and give more example

0 Answers  


what is use of malloc and calloc?

0 Answers  


how to connect oracle in C/C++.

3 Answers   TCS, Wipro,


What are the advantages of external class?

0 Answers  


Why c language is called c?

0 Answers  






How can a program be made to print the name of a source file where an error occurs?

0 Answers  


What is the use of #define preprocessor in c?

0 Answers  


How can I read in an object file and jump to locations in it?

0 Answers  


Explain how can you determine the size of an allocated portion of memory?

0 Answers  


What is storage class?

0 Answers  


4.A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above

6 Answers   Accenture,


Explain what is the benefit of using const for declaring constants?

0 Answers  


Categories