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

What are the types of assignment statements?

0 Answers  


what is the difference between global variable & static variable declared out side all the function in the file.

2 Answers  


Explain pointer. What are function pointers in C?

0 Answers   HCL,


in malloc and calloc which one is fast and why?

1 Answers  


What are the modifiers available in c programming language?

0 Answers  






who did come first hen or agg

15 Answers   Infosys,


In which layer of the network datastructure format change is done

0 Answers   Honeywell,


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

0 Answers  


How a string is stored in c?

0 Answers  


Write a program to print all the prime numbers with in the given range

8 Answers   ABC, College School Exams Tests, TCS,


write a prgram of swapping with 2 valiables

6 Answers  


how many times of error occur in C

11 Answers  


Categories