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
In a header file whether functions are declared or defined?
What are structures and unions? State differencves between them.
How variables are declared in c?
What is array in c with example?
What is header file in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is #line?
What is external variable in c?
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 is difference between structure and union with example?
What is boolean in c?
What is data types?
a program that can input number of records and can view it again the record
What is volatile variable in c with example?
`write a program to display the recomended action depends on a color of trafic light using nested if statments