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
How can I make sure that my program is the only one accessing a file?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What are the features of c languages?
Are the expressions * ptr ++ and ++ * ptr same?
What does volatile do?
Is c call by value?
What is the difference between void main and main in c?
What are the main characteristics of c language describe the structure of ac program?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What are the data types present in c?
What is || operator and how does it function in a program?
Simplify the program segment if X = B then C ← true else C ← false
What are inbuilt functions in c?
Can you add pointers together? Why would you?
What does dm mean sexually?