What is the real time usage volatile?
Answers were Sorted based on User's Feedback
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 difference function call by value & function call by reference?
What are the types of data files?
What is nested structure in c?
Write a program to print prime nums from 1-20 using c programing?
what is c?
What is calloc malloc realloc in c?
What is the difference between fread and fwrite function?
Tell us bitwise shift operators?
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
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
difference between c and c++
What is a good data structure to use for storing lines of text?