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
Is array name a pointer?
Explain what is wrong with this program statement? Void = 10;
What is c language in simple words?
Hai what is the different types of versions and their differences
What are pointers? Why are they used?
What is the default value of local and global variables in c?
What language is lisp written in?
Explain that why C is procedural?
What is modifier & how many types of modifiers available in c?
Why we not create function inside function.
Explain how can I convert a string to a number?
Multiply an Integer Number by 2 Without Using Multiplication Operator
Explain how do you sort filenames in a directory?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What is pointers in c?