Whether there can be main inside another main?If so how does
it work?
Answer Posted / sandeep
Absolutely no .
Because the question asks that whether we can define a main inside other main,they did't ask about we can call main by its self or not.
#include<stdio.h>
void main()
{
void main()
{
printf("main");//un ambigious
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what type of questions arrive in interview over c programming?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Can you please explain the difference between exit() and _exit() function?
What is scanf_s in c?
Is there any demerits of using pointer?
Why does everyone say not to use gets?
What is fflush() function?
How is a null pointer different from a dangling pointer?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
When should a type cast be used?
How can I avoid the abort, retry, fail messages?
What is the size of a union variable?
How can I trap or ignore keyboard interrupts like control-c?
What are qualifiers in c?