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 are extern variables in c?
Which is more efficient, a switch statement or an if else chain?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
what is the role you expect in software industry?
What are the uses of a pointer?
What is printf () in c?
How variables are declared in c?
How do you define a string?
What is double pointer?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is indirection? How many levels of pointers can you have?
Which one would you prefer - a macro or a function?
Why do we need arrays in c?
How can I generate floating-point random numbers?
Explain the bubble sort algorithm.