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 the explanation for modular programming?
The difference between printf and fprintf is ?
What is indirection? How many levels of pointers can you have?
What is a stream in c programming?
What is a #include preprocessor?
Why cant I open a file by its explicit path?
Using which language Test cases are added in .ptu file of RTRT unit testing???
Tell us bitwise shift operators?
What is the full form of getch?
provide an example of the Group by clause, when would you use this clause
What is the difference between exit() and _exit() function in c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is meant by 'bit masking'?
Which is best linux os?