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 |
Write a program of prime number using recursion.
why return type of main is not necessary in linux
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What are the types of operators in c?
Explain what are the different data types in c?
Explain the difference between the local variable and global variable in c?
main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf("%s",b);}
f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed
What is main () in c language?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is dynamic variable in c?
How can I recover the file name given an open stream or file descriptor?