Whether there can be main inside another main?If so how does
it work?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / arun
we can main() inside main() it will work as like as
recursive funtion and it would like a infinate loop
| Is This Answer Correct ? | 2 Yes | 4 No |
What is the difference between malloc() and calloc()?
Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4
What is variable and explain rules to declare variable in c?
Write code for initializing one dimentional and two dimentional array in a C Program?
5 Answers Deshaw, Edutech, GMD,
program that accepts amount in figures and print that in words
2 Answers Infosys, Lovely Professional University, Wipro,
If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.
What is a void pointer in c?
What is the 'named constructor idiom'?
what is Structural oriented language? give some example of this language.....?
pascal triangle program
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
HOW CAN ADD OUR FUNCTION IN LIBRARY.