what is volatile in c language?
Answer Posted / s.m.faisal
volatile reduces the optimization .optimization means compiler should not make out that the variable has not changed its value so it reads the value directly from the register.
So while using volatile keyword compiler will directly access the variable from the memory not from the register bcz the value of the variable can be changed outside or inside the program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can you assign a different address to an array tag?
How is null defined in c?
What are the characteristics of arrays in c?
What is getch () for?
What is define directive?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is typedef?
What is file in c preprocessor?
What are the string functions? List some string functions available in c.
Is return a keyword in c?
Why double pointer is used in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
How do you redirect a standard stream?
Write a program to swap two numbers without using third variable in c?