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
If I have a char * variable pointing to the name of a function ..
Write a code of a general series where the next element is the sum of last k terms.
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Can the “if” function be used in comparing strings?
Where does the name "C" come from, anyway?
What are the preprocessor categories?
Why we use conio h in c?
What is pass by reference in c?
Write a program to reverse a linked list in c.
How variables are declared in c?
Explain what is wrong in this statement?
Why is c called "mother" language?
What are the advantage of c language?
What is unary operator?
What is bin sh c?