What are volatile variables?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain heap and queue.

577


Why is c fast?

601


What is the advantage of a random access file?

637


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

760


Why we use void main in c?

590






Can true be a variable name in c?

555


What are the usage of pointer in c?

701


What is the use of gets and puts?

599


Explain what are preprocessor directives?

623


What are 'near' and 'far' pointers?

616


Can you apply link and association interchangeably?

669


What is pointer & why it is used?

600


what do you mean by inline function in C?

609


What are valid operations on pointers?

662


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

648