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 rethow can I return a sequence of random numbers which dont repeat at all?
What are data types in c language?
What do you understand by normalization of pointers?
Who invented b language?
What are the types of type specifiers?
List the different types of c tokens?
What is void pointers in c?
What is the heap?
What is the auto keyword good for?
Explain the properties of union. What is the size of a union variable
What is a macro in c preprocessor?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What is conio h in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers