What is volatile
Answers were Sorted based on User's Feedback
Answer / ravi.jnv
Volatile is to inform the compiler that not to optimise
code.
for ex:
int a = port1;
int b = port1;
int c = port1;
compiler may convert it as
int a=b=c=port1;
so avoid it , u have to use volatile keyword.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
write a program for 7*8 = 56 ? without using * multiply operator ? output = 56
What is the full form of getch?
How can I automatically locate a programs configuration files in the same directory as the executable?
Explain what are the different file extensions involved when programming in c?
Tell us something about keyword 'auto'.
The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);
1 Answers HCL, Public Service Commission,
what is used instead of pointers in java than c?
How can I list all of the predefined identifiers?
What is the difference between far and near in c?
1. main() { printf("%d",printf("HelloSoft")); } Output?
Write a function in c to find the area of a triangle whose length of three sides is given.
What is pivot in c?