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
Explain the use of keyword 'register' with respect to variables.
Is c compiled or interpreted?
When should a type cast be used?
What is wrong with this program statement? void = 10;
Why structure is used in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
How can I trap or ignore keyboard interrupts like control-c?
When should you use a type cast?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What does c mean before a date?
What is the difference between the local variable and global variable in c?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Why functions are used in c?
Is register a keyword in c?