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
What is data structure in c programming?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Is null equal to 0 in sql?
What is difference between static and global variable in c?
Explain how can a program be made to print the name of a source file where an error occurs?
Describe newline escape sequence with a sample program?
What is the use of function overloading in C?
Is anything faster than c?
What will be your course of action for a push operation?
How many keywords (reserve words) are in c?
Can a void pointer point to a function?
Explain what are preprocessor directives?
What is main () in c language?
what is the difference between 123 and 0123 in c?