What are volatile variables?



What are volatile variables?..

Answer / manoj

Volatile variable will be used when we are dealing with
external memory, external device and interrupt service
routine. In these situation if some variable needs update
or gets update without user knowledge in that case variable
should be declared as VOLATILE. otherwise we may loose
these update.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More C Interview Questions

5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

1 Answers   TCS,


List out few of the applications that make use of Multilinked Structures?

1 Answers   Accenture,


Explain how many levels deep can include files be nested?

0 Answers  


What is structure in c definition?

0 Answers  


Write a C Programm.. we press 'a' , it shows the albhabetical number is 1, if we press 'g' it shows the answer 7.. any can help me

7 Answers  






Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2 Answers   Cap Gemini, HCL,


What is const keyword in c?

0 Answers  


What is auto keyword in c?

0 Answers  


LOGIC OF Bodmas?

1 Answers  


Which is better malloc or calloc?

0 Answers  


What extern c means?

0 Answers  


What is the use of putchar function?

0 Answers  


Categories