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 do I swap bytes?
What are derived data types in c?
When would you use a pointer to a function?
What does p mean in physics?
What are the 5 types of organizational structures?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is the size of enum in bytes?
What are the advantages of using macro in c language?
What is #include cctype?
Write a program to print numbers from 1 to 100 without using loop in c?
Explain what is meant by high-order and low-order bytes?
What is pass by reference in functions?
How can I determine whether a machines byte order is big-endian or little-endian?
Why doesnt the call scanf work?
Why does the call char scanf work?