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

what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....

1 Answers   TCS,


write a program without using main function?

2 Answers   TCS,


What is the purpose of sprintf?

0 Answers  


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

0 Answers   Aspiring Minds,


what is c++ programming?

3 Answers   TCS,


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


Write a routine that prints out a 2-D array in spiral order!

1 Answers   Lucent,


What is derived datatype in c?

0 Answers  


Do you know null pointer?

0 Answers  


What are the advantages of Macro over function?

1 Answers  


What is the difference between array and structure in c?

0 Answers  


How to print %d in output

6 Answers   Wipro,


Categories