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 are valid operations on pointers?
Write a C program in Fibonacci series.
What language is c written?
Why is it usually a bad idea to use gets()? Suggest a workaround.
How can I call a function with an argument list built up at run time?
What are the string functions? List some string functions available in c.
What is auto keyword in c?
What is external variable in c?
How to Throw some light on the splay trees?
What is typedef example?
What are c preprocessors?
How can I make it pause before closing the program output window?
What is 2c dna?
How to explain the final year project as a fresher please answer with sample project
What is pragma in c?