What is the use of keyword VOLATILE in C?



What is the use of keyword VOLATILE in C?..

Answer / pawan

It prevent the (pseudo)compiler from applying any
optimizations on the code

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

0 Answers  


what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }

3 Answers   Honeywell,


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

0 Answers  


What is the difference between abs() and fabs() functions?

0 Answers  


write a method for an array in which it can display the largest n next largest value.

1 Answers   Value Labs,






How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 Answers  


How can I determine whether a machines byte order is big-endian or little-endian?

0 Answers  


write a program to count the no of repaeted words in a line?

1 Answers  


How can I change the size of the dynamically allocated array?

0 Answers  


what is the definition of storage classes?

3 Answers   Wipro,


while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?

4 Answers   Aptech,


Three major criteria of scheduling.

1 Answers  


Categories