What is the real time usage volatile?

Answers were Sorted based on User's Feedback



What is the real time usage volatile?..

Answer / stylish_312

volatile int i=10;
main()
{
fun()
{
while(i==10)
{
...
}
printf("This will print..\n");
}
}
ANS:
if we are not using volatile int ,the loop will be keep on
exeecuting,so printf statement will not print...to break
this loop declare the variable as a volatile....

Is This Answer Correct ?    8 Yes 2 No

What is the real time usage volatile?..

Answer / braja28

that is one type of temporary storage

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What is the difference function call by value & function call by reference?

6 Answers  


What are the types of data files?

0 Answers  


What is nested structure in c?

0 Answers  


Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


what is c?

4 Answers   IBM, TCS,






What is calloc malloc realloc in c?

0 Answers  


What is the difference between fread and fwrite function?

0 Answers  


Tell us bitwise shift operators?

0 Answers  


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

0 Answers  


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

0 Answers  


difference between c and c++

3 Answers  


What is a good data structure to use for storing lines of text?

0 Answers  


Categories