What is an volatile variable?
Answers were Sorted based on User's Feedback
Answer / shruti
okies..
I really had no idea about this concept..
Can neone plz tell me how do we declare, such volatile
varibales??
Thanks..
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / harish
volatile variable tells the compiler not to optimize the
code at run time.
example:
volatile int a = 20; // variable a is declared as volatile.
For more information check this out...
http://www.programmersheaven.com/articles/pathak/article1.htm
| Is This Answer Correct ? | 5 Yes | 8 No |
Answer / manish
as on compiler optimize the code. and it take the variable
first in cache and then in resisters.
so in volatile variables what the value is stored at first
time it will be stored in resister but when u want to
change the values of that volatiles variables.it will not
change.
| Is This Answer Correct ? | 3 Yes | 6 No |
volatile variable is that which we can't change during
program execution tome
| Is This Answer Correct ? | 2 Yes | 35 No |
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is a program?
What is omp_num_threads?
Write a program to check whether a number is prime or not using c?
Write a programme to find even numbers without using any conditional statement?
3 Answers ADD Software, Infosys,
To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.
Differentiate between a structure and a union.
character array A[12] can hold
how can f be used for both float and double arguments in printf? Are not they different types?
what is the difference between const volatile int i & volatile const int j;
Why header file is used in c?
inline function is there in c language?