Answer Posted / nikhil
Basically, it is a type qualifier.
a volatile data type is used at optimizer level.
Generally, in the embedded coding, When the optimizer is Set
on "favor size". The data type declaration as volatile
declares to compiler that the value of this data type can
change beyond the program flow(like interrupts.
Otherwise if the optimizer is enable, the program malfunctions.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is realloc in c?
What are the two types of structure?
When should volatile modifier be used?
Explain how can you tell whether two strings are the same?
Explain the use of 'auto' keyword in c programming?
Explain the difference between ++u and u++?
How can you find the exact size of a data type in c?
How a string is stored in c?
What are high level languages like C and FORTRAN also known as?
Write a Program to accept different goods with the number, price and date of purchase and display them
Explain what is wrong in this statement?
What is the return type of sizeof?
How are variables declared in c?
What is difference between && and & in c?
Can the sizeof operator be used to tell the size of an array passed to a function?