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...


can v write main()
{
main();
}
Is it true?

Answers were Sorted based on User's Feedback



can v write main() { main(); } Is it true?..

Answer / manish soni bca 3rd year jaipu

it is recursive function.
here is no condition is apply so
the result is
infintely.
and after that 'the statck memory flow'.
conditio is start.


manish soni tagore bio tech collage,
jaipur

Is This Answer Correct ?    2 Yes 0 No

can v write main() { main(); } Is it true?..

Answer / satya

k.. but what is the result.. i want some explanation... is
not it be recurssive..

Is This Answer Correct ?    2 Yes 1 No

can v write main() { main(); } Is it true?..

Answer / sharath

yes we can write

Is This Answer Correct ?    5 Yes 5 No

can v write main() { main(); } Is it true?..

Answer / sharath

yes it becomes a recursive function
we have to specify any condition using a loop or any decision block so that the loop doesnot call the main() function again.

Is This Answer Correct ?    1 Yes 1 No

can v write main() { main(); } Is it true?..

Answer / sharath

what do you think as you oppposed the answer
can you please explain it
please..

Is This Answer Correct ?    0 Yes 0 No

can v write main() { main(); } Is it true?..

Answer / sharath

yes u are right
there is no condition and the result is an infinite loop which continues till the stack overflow after that it may hang..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain what is meant by high-order and low-order bytes?

0 Answers  


c program to compute AREA under integral

0 Answers   Infosys,


Explain can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


main() { enum _tag{ left=10, right, front=100, back}; printf("%d, %d, %d, %d", left, right, front, back); }

1 Answers   Accenture, Vector,


Explain two-dimensional array.

0 Answers  


Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile?

4 Answers   Oracle,


what is the difference between declaration and definition of a variable or function ?

3 Answers  


What is an array in c?

0 Answers  


main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

1 Answers   GATE,


Explain modulus operator. What are the restrictions of a modulus operator?

0 Answers  


What is the difference between malloc() and calloc() function in c language?

0 Answers  


Tell us two differences between new () and malloc ()?

0 Answers   Adobe,


Categories