Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

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

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

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

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

Answer / qq

int main()
{ /*main();*/
printf("Thant's it");
}

Is This Answer Correct ?    3 Yes 6 No

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

Answer / jagadish

main()
{
clrscr();
printf("");
getch();
}

Is This Answer Correct ?    5 Yes 31 No

Post New Answer

More C Interview Questions

Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

0 Answers  


Explain the concept and use of type void.

0 Answers  


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

0 Answers  


how to connect oracle in C/C++.

3 Answers   TCS, Wipro,


What is difference between union and structure in c?

0 Answers  


What is the scope of static variables in c language?

1 Answers  


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

0 Answers  


Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

3 Answers   NDS,


How to write the code of the program to swap two numbers with in one statement?

2 Answers  


how to write a data 10 in address location 0x2000

3 Answers  


What is the difference between i++ and i+1 ?(in terms of memory)

3 Answers   HCL,


what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }

4 Answers  


Categories