What is volatile

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


Please Help Members By Posting Answers For Below Questions

What are extern variables in c?

552


Which is more efficient, a switch statement or an if else chain?

585


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1256


what is the role you expect in software industry?

1660


What are the uses of a pointer?

685






What is printf () in c?

583


How variables are declared in c?

576


How do you define a string?

660


What is double pointer?

563


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

670


What is indirection? How many levels of pointers can you have?

665


Which one would you prefer - a macro or a function?

606


Why do we need arrays in c?

589


How can I generate floating-point random numbers?

613


Explain the bubble sort algorithm.

650