What is an volatile variable?

Answer Posted / satish

if a variable is declared as volatile ,optimization is not
done regarding to that variable.If the value is modified
many number of times,each time CPU goes and reads from main
memory rather than cache memory.
The usage of this can be
understood clearly only at kernel level but not at
application level.

Is This Answer Correct ?    36 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If fflush wont work, what can I use to flush input?

623


How is = symbol different from == symbol in c programming?

618


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4547


What is #line?

617


What is the difference between single charater constant and string constant?

629






What is s in c?

623


What does void main return?

612


What are 3 types of structures?

599


What is the modulus operator?

744


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

644


Why do we use main function?

646


What is a nested formula?

611


Is multithreading possible in c?

573


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

663


What is hungarian notation? Is it worthwhile?

707