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

Should I learn data structures in c or python?

0 Answers  


What is keyword in c?

0 Answers  


How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


write aprogram for There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

1 Answers   iGate, Shashi, Source Bits, Subex,


Explain what’s a signal? Explain what do I use signals for?

0 Answers  






Explain how do you search data in a data file using random access method?

0 Answers  


why Language C is plateform dependent

3 Answers   Siemens, Wipro,


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

0 Answers   Infosys,


write a program to print the one dimensional array.

1 Answers  


What is the difference between realloc() and free()

1 Answers  


#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


What is unsigned int in c?

0 Answers  


Categories