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
Write a program to reverse a given number in c language?
What does the file stdio.h contain?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is size of union in c?
When was c language developed?
What do you mean by a local block?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the purpose of ftell?
What is meant by type casting?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is a const pointer?
Can a void pointer point to a function?
using only #include
What is the difference between near, far and huge pointers?
Why functions are used in c?