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 a node in c?

0 Answers  


What is indirection in c?

0 Answers  


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

0 Answers  


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

0 Answers  


Explain what are multidimensional arrays?

0 Answers  


Explain how can I read and write comma-delimited text?

0 Answers  


The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................

14 Answers   HOV Services, IBM, Potty,


what do you mean by defining a variable in our c code?

2 Answers  


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

0 Answers   Wilco,


What are the valid places to have keyword “break”?

0 Answers  


What is union and structure?

0 Answers  


YBJBU6

1 Answers  


Categories