what is volatile in c language?
Answer Posted / s.m.faisal
volatile reduces the optimization .optimization means compiler should not make out that the variable has not changed its value so it reads the value directly from the register.
So while using volatile keyword compiler will directly access the variable from the memory not from the register bcz the value of the variable can be changed outside or inside the program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a example of a variable?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
How many data structures are there in c?
What is time null in c?
How can you restore a redirected standard stream?
Why string is used in c?
What is a rvalue?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What are register variables in c?
What is the difference between %d and %i?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
How can I swap two values without using a temporary?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Explain what are header files and explain what are its uses in c programming?
What is storage class?