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 will be the outcome of the following conditional statement if the value of variable s is 10?
How can I implement sets or arrays of bits?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What are the two types of functions in c?
How many loops are there in c?
what is event driven software and what is procedural driven software?
How to write a multi-statement macro?
How are Structure passing and returning implemented by the complier?
What is #include stdio h and #include conio h?
What is declaration and definition in c?
What is the heap?
What is exit() function?
Is a house a mass structure?
What is volatile c?
Why do we use static in c?