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 line in c preprocessor?
What is bubble sort in c?
Why enum is used in c?
Is multithreading possible in c?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Where local variables are stored in c?
int i=10; printf("%d %d %d", i, i=20, i);
What is this infamous null pointer, anyway?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Tell me can the size of an array be declared at runtime?
How can I automatically locate a programs configuration files in the same directory as the executable?
What do the functions atoi(), itoa() and gcvt() do?
What does dm mean sexually?
What is variable in c example?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor