[Ilugc] C pgm - Recursive -segmentation fault

  • From: gopalarathnam_v@xxxxxxxxx (Gopalarathnam V.)
  • Date: Mon Sep 13 17:40:38 2004

Guess you're confused between recursive functions and daemon
programs/services.

Now whats your question? ;-)

On Mon, 2004-09-13 at 17:22, Kannan_Ranganathan wrote:

 As people rightly  pointed out it must be stack overflow.

But tell me an recursive function shld run forever(atleast in theory) right
??? 


Consider a case where my program does something repeatedly ..in such a case
I write a recursive program .what's the point in writing a recursive
function if it is going to exit abruptly.

Now the question arises how to clear this stack etc etc ???? 


Regards 
Kannan 

-- 
Gopalarathnam V.


Other related posts: