what is const volatile?

Answers were Sorted based on User's Feedback



what is const volatile?..

Answer / test

Voliatile means value can be changed at any point .when we
say cont volatile it says value cant be changed by the
programer but can be changed by the hardware ..
for example status register of any hardware ..
its volatile since value of this register can changed at any
time and its const too since its not changed by the programmer.

Is This Answer Correct ?    7 Yes 1 No

what is const volatile?..

Answer / n

read-only data which should not be optimized by compiler
because it might be modified by some ways unknown by
compiler.(ex: HW, or even by other thread if we have const
volatile int *p for example, where p is the address of some
variable which is not const).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the difference between null pointer and the void pointer?

3 Answers  


What is volatile variable in c?

1 Answers  


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

2 Answers  


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1 Answers  


While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.

2 Answers  


What is a stream in c programming?

1 Answers  


hOW Can I add character in to pointer array of characters char *a="indian"; ie I want to add google after indian in the char *a

1 Answers  


What are different types of variables in c?

1 Answers  


can we define a function in structure?

2 Answers  


Can you apply link and association interchangeably?

1 Answers   InterGraph,


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

9 Answers  


What is getch () for?

1 Answers  


Categories