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

the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

0 Answers  


b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720

1 Answers   HCL,


count the numbers between 100 and 300, that star with 2 and ends with 2

5 Answers   Mind Tree,


how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48

1 Answers  


Can main () be called recursively?

0 Answers  






Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

0 Answers   Expedia,


ATM machine and railway reservation class/object diagram

0 Answers   Zycus Infotech,


who is the founder of c

19 Answers   College School Exams Tests, HP,


What are the languages are portable and platform independent?Why they are like that?

1 Answers   Excel, Satyam,


write a function to find whether a string is palindrome or not and how many palindrome this string contain?

2 Answers   Aptech,


what is the function of void main()?

8 Answers  


How can you increase the size of a statically allocated array?

0 Answers   TISL,


Categories