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

hi, which software companys will take,if d candidate's % is jst 55%?

0 Answers  


#include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain &#1567;&#1567;&#1567;

4 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it

7 Answers  


What is the difference between array and pointer in c?

0 Answers  


what is calloc and malloc?

2 Answers  






Explain what is the concatenation operator?

0 Answers  


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

0 Answers  


Explain what is the difference between text files and binary files?

0 Answers  


What are identifiers and keywords in c?

0 Answers  


Write a program to find factorial of a number using recursive function.

0 Answers   Global Logic, TCS,


which of 'arrays' or 'pointers' are faster?

5 Answers  


Explain how do you view the path?

0 Answers  


Categories