what is the use of keyword volatile??
Answers were Sorted based on User's Feedback
Answer / kishor narayan
Volatile qualifier indicates to the compiler that the
variable can be modified at any stage of the program
execution. This can happen even if the region of code being
executed might not have any access to the variable in
question. In that sense, Volatile qualifier does the
opposite of the Const qualifier.
@Vignesh1988i -> Volatile qualifier does not assign any
garbage value to the variable.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / kala
it is the variable which can be modified outside of the
program. i.e hardwares can modify this variable. To avoid
compiler optimization we can use volatile.
this is used for memory mapped hardware and shared memory
usuage.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / pur
if you use volatile variables then code optimization will
not happen at compilation time, so .o size will be more.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / vignesh1988i
volatile keyword is a one in which assigns some garbage
value to the variables declared with this keyword..........
before assigning some values by the user to the variables.
| Is This Answer Correct ? | 4 Yes | 10 No |
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is return in c programming?
How can you determine the maximum value that a numeric variable can hold?
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
. A database table called PERSON contains the fields NAME, BASIC and HRA. Write a computer program to print a report which employee name and total salary for those employees whose total salary is more than 10,000. Total Salary = BASIC + HRA. At the end, the program should also print the total number of employees whose total salary is more than 10,000.
When is a “switch” statement preferable over an “if” statement?
What does *p++ do?
why i join syntel?
23 Answers ABC, Syntel, TCS,
main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }
How is a structure member accessed?
what is the different between data structure and data type?
what is difference between ANSI structure and C99 Structure?