Is main() is used in the program,,see below example?
void main()
{
int i;
for(i=0;i<10;i++)
main();
}
Then what is the output of the program?
Answer Posted / sai
The given program is an infinite loop with no
output.Because it calls main() function with in the for
loop.
So the value of the i always '0' only.According to the for
loop condition the execution of the program goes false only
i>=10.Then when the condition in the for loop goes to false?
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Can a void pointer point to a function?
write a program to copy the string using switch case?
Is there a way to compare two structure variables?
What is static and volatile in c?
What is the heap in c?
What is indirection in c?
please send me the code for multiplying sparse matrix using c
What is the importance of c in your views?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is c programming hard?
What is a scope resolution operator in c?
Does c have enums?
What is the difference between malloc() and calloc()?
Does c have function or method?