[Ilugc] C pgm - Recursive -segmentation fault

  • From: Kannan_Ranganathan@xxxxxxxxxx (Kannan_Ranganathan)
  • Date: Tue Sep 14 10:13:00 2004

Hi 

   I ran this program 

void R()
{
    static int i =0;
    i++;
  /*  printf("%d\n",i);*/

    R();
}

int main()
{
    R();
}

in my Home ...the same program which was sent earlier.

This program is still running well above 12 hrs (running since last night
till I left for office this morning  ) ... My machine is a P2 /64 MB ram. 

I am sure it would have run more than 52K times ...Any clues what's
happening here ??? No segmentation fault nothing .
Don't exactly remember gcc version..

Regards 
Kannan 
 
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

Other related posts: