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

from which concept of 'c', the static member function of 'c++' has came?

1 Answers   Bosch,


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

0 Answers  


What are the different data types in C?

0 Answers  


for(;;) printf("C language") What is out put of above??

2 Answers   Practical Viva Questions,


Write a C program to fill a rectangle using window scrolling

1 Answers  






What does a run-time "null pointer assignment" error mean?

2 Answers  


write a program to generate 1st n fibonacci prime number

12 Answers  


 Illustrate it   summing the series 2+4+6+......to n terms using  (i) while loop (ii) do-while loop

2 Answers  


How do you define a function?

0 Answers  


In which header file is the null macro defined?

0 Answers  


code for reverse alternate words from astring

1 Answers   IBM,


Why is structure important for a child?

0 Answers  


Categories