Answer Posted / 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 |
Post New Answer View All Answers
What is the most efficient way to count the number of bits which are set in an integer?
What are structural members?
How can I ensure that integer arithmetic doesnt overflow?
string reverse using recursion
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
what is the format specifier for printing a pointer value?
Can a pointer be volatile in c?
What is #pragma statements?
explain what is a newline escape sequence?
Do pointers store the address of value or the actual value of a variable?
Array is an lvalue or not?
Compare and contrast compilers from interpreters.
Tell me can the size of an array be declared at runtime?
Are c and c++ the same?
How do I use void main?