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 mean by data types in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is calloc malloc realloc in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What are structure types in C?
When should the register modifier be used? Does it really help?
What is || operator and how does it function in a program?
Is it cc or c in a letter?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What is the use of f in c?
What are the similarities between c and c++?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Who developed c language and when?
Is printf a keyword?
Should I learn data structures in c or python?