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
What are global variables and explain how do you declare them?
How can a process change an environment variable in its caller?
What is sorting in c plus plus?
Which is an example of a structural homology?
What is ambagious result in C? explain with an example.
How do I send escape sequences to control a terminal or other device?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What are qualifiers?
What are the c keywords?
What is extern c used for?
What is void main () in c?
What is pointer & why it is used?
Is there any possibility to create customized header file with c programming language?
Why can’t we compare structures?
List some basic data types in c?