Answer Posted / 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 |
Post New Answer View All Answers
What are global variables and how do you declare them?
Why clrscr is used after variable declaration?
What is line in c preprocessor?
what do you mean by inline function in C?
Is there a built-in function in C that can be used for sorting data?
What is file in c language?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
How do you override a defined macro?
Can a pointer be volatile in c?
Is c procedural or object oriented?
Tell us bitwise shift operators?
Why c is called procedure oriented language?
What is a substring in c?
What is the difference between abs() and fabs() functions?
What is difference between structure and union in c?