Whether there can be main inside another main?If so how does
it work?

Answer Posted / vara

there will be no error but the output will go in infinite
loop
main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
main();
getch();
}

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an endless loop?

810


How do you redirect a standard stream?

628


How would you use the functions fseek(), freed(), fwrite() and ftell()?

709


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1333


Tell us something about keyword 'auto'.

670






How does free() know explain how much memory to release?

623


Explain Basic concepts of C language?

652


What is extern keyword in c?

648


What is dynamic dispatch in c++?

563


Is it possible to execute code even after the program exits the main() function?

828


write a program to concatenation the string using switch case?

1566


How pointer is different from array?

587


How many bytes are occupied by near, far and huge pointers (dos)?

680


What does c mean?

596


What are the ways to a null pointer can use in c programming language?

598