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


Please Help Members By Posting Answers For Below Questions

What is a class c rental property?

620


What is difference between array and structure in c?

585


How can I find the modification date of a file?

708


How to throw some light on the b tree?

608


given post order,in order construct the corresponding binary tree

2331






What is a lvalue

668


What is a program?

669


What is this infamous null pointer, anyway?

616


How variables are declared in c?

578


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1577


What is an auto keyword in c?

650


What are the storage classes in C?

631


Are the expressions * ptr ++ and ++ * ptr same?

673


Define Array of pointers.

638


What are the different types of linkage exist in c?

617