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 the purpose of main( ) in c language?
Is there any demerits of using pointer?
what are # pragma staments?
Is c dynamically typed?
Differentiate between a for loop and a while loop? What are it uses?
What is c variable?
Why is c not oop?
Define macros.
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is a rvalue?
what are enumerations in C
What is auto keyword in c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
What is the difference between union and anonymous union?
What is conio h in c?