where do we use volatile keyword?



where do we use volatile keyword?..

Answer / achal ubbott

the keyword volatile is more used in embedded systems
programming, especially when we are dealing with the
special function registers of a microcontroller. e.g.
status register of UART or some other peripheral devices.
As you may know that volatile asks the compiler not to
subject the variable in question to optimization.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Interview Questions

question-how to run a c programme.

6 Answers  


Differentiate abs() function from fabs() function.

0 Answers  


What is 2 d array in c?

0 Answers  


why effort estimation is important?

1 Answers  


what type of language is C?

13 Answers   Microsoft,






Is swift based on c?

0 Answers  


please can some one guide me, to the answer Write a C program to enter 15 numbers as an input from the keyboard and program will find and print odd numbers and their average. i have studied while and do while loop for loop if and else if switch

2 Answers  


Why string is used in c?

0 Answers  


what is the difference between. system call and library function?

2 Answers   CDAC, Satyam,


write a Program to dispaly upto 100 prime numbers(without using Arrays,Pointer)

26 Answers   ADITI, iFlex, Infosys, Oracle, TCS, Unicops, Wipro,


Why do we need a structure?

0 Answers  


main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā€œ%dā€,x); }

8 Answers   Vector,


Categories