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 the diffrenet bettwen HTTP and internet protocol
What are operators in c?
What are data structures in c and how to use them?
What does the file stdio.h contain?
What is a char c?
What is the most efficient way to count the number of bits which are set in an integer?
Write a program to swap two numbers without using third variable?
Can you apply link and association interchangeably?
What language is windows 1.0 written?
When should structures be passed by values or by references?
Why c is faster than c++?
What are the rules for identifiers in c?
What is a stream?
What is the benefit of using an enum rather than a #define constant?
Explain what is the difference between #include and #include 'file' ?