Whether there can be main inside another main?If so how does
it work?
Answer Posted / divyansh
main marks the beginning of a program, 2 direct mains can't
be there as it will make the compiler dumb!(literally),in
this case it will give an error, or an infinite loop
operation will be executed.
Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
int i=10; printf("%d %d %d", i, i=20, i);
How can I avoid the abort, retry, fail messages?
What math functions are available for integers? For floating point?
What is a union?
What is getch?
Explain what is a const pointer?
Explain what are header files and explain what are its uses in c programming?
How can a program be made to print the line number where an error occurs?
Explain how do you generate random numbers in c?
Can we declare function inside main?
What extern c means?
Why we not create function inside function.
What is the role of this pointer?
What is the role of && operator in a program code?
Can you add pointers together? Why would you?