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 the 10 different models of writing an addition program in C language?
What are different types of operators?
What is the purpose of ftell?
What is the difference between array and pointer?
a c code by using memory allocation for add ,multiply of sprase matrixes
Explain spaghetti programming?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Write a program to print numbers from 1 to 100 without using loop in c?
Explain what is the difference between text files and binary files?
Write a program to reverse a given number in c language?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is the use of in c?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Why static is used in c?
What does dm mean sexually?