what is const volatile?
Answers were Sorted based on User's Feedback
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 |
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 |
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
Explain what math functions are available for integers? For floating point?
What is scope rule in c?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Is c call by value?
Three major criteria of scheduling.
What is the restrict keyword in C?
What are Macros? What are its advantages and disadvantages?
What are types of preprocessor in c?
What header files do I need in order to define the standard library functions I use?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Bit swapping