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 are the different file extensions involved when programming in C?
Do string constants represent numerical values?
Are c and c++ the same?
What are extern variables in c?
What is pointer to pointer in c with example?
Explain how do you list a file’s date and time?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Are the variables argc and argv are local to main?
Difference between strcpy() and memcpy() function?
how is the examination pattern?
Can we use visual studio for c?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is the use of a ‘ ’ character?
What is string length in c?
Can stdout be forced to print somewhere other than the screen?