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 is a structure and why it is used?
What is line in c preprocessor?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is wrong in this statement? scanf(ā%dā,whatnumber);
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
what is use of malloc and calloc?
Is swift based on c?
Why is c still so popular?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Are bit fields portable?
Is c object oriented?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What are bitwise shift operators in c programming?
What is the difference between fread buffer() and fwrite buffer()?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?