Whether there can be main inside another main?If so how does
it work?
Answer Posted / nilanjan
Surely. . It will just act like a recursive version of
main(), which will run infinite times if there is no
limiting condition specified.
Sample:
#include <stdio.h>
int main()
{
int static i = 0;
printf("\nFile is too big.");
while(i == 0)
{
i++;
main();
}
return 0;
}
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
How can I manipulate strings of multibyte characters?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is c system32 taskhostw exe?
What is the code for 3 questions and answer check in VisualBasic.Net?
Explain what is the difference between a free-standing and a hosted environment?
What is meant by type casting?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Explain how can you check to see whether a symbol is defined?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What does volatile do?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Is it better to use malloc() or calloc()?
What is the difference between c and python?