Whether there can be main inside another main?If so how does
it work?
Answer Posted / harinath
yes there can be
for example
main()
{
static int count=50;
printf("%d",count--);
while(count>0)
main();
}
here the output is numbers upto 1 then it comes out of it.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
write a program to find the given number is prime or not
How can I do peek and poke in c?
What are the usage of pointer in c?
What are external variables in c?
What is call by reference in functions?
What is the benefit of using #define to declare a constant?
What are the two forms of #include directive?
What is a lvalue
Is there a way to compare two structure variables?
How do you convert strings to numbers in C?
Explain the use of function toupper() with and example code?
Write a program to identify if a given binary tree is balanced or not.
Write a program to check prime number in c programming?
What does %2f mean in c?
Explain what is a program flowchart and explain how does it help in writing a program?