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

Program to display given 3 integers in ascending order

1 Answers   N Tech,


How to print %d in output

6 Answers   Wipro,


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

0 Answers  


What is return in c programming?

0 Answers  


Explain in detail how strset (string handling function works )pls explain it with an example.

1 Answers  


What is a void pointer? When is a void pointer used?

0 Answers   Aspire, Infogain,


what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 Answers  


What is indirection in c?

0 Answers  


what defference between c and c++ ?

6 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,


main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); }

27 Answers   Advent Global Solutions, CitiGroup, Valeo Lighting Systems India Private Limited, Vishal Transformers, Wipro, Zencer,


Is file a keyword in c?

0 Answers  


Categories