[Ilugc] C pgm - Recursive -segmentation fault

  • From: karthick.sundararajan@xxxxxxxxx (karthick.sundararajan@xxxxxxxxx)
  • Date: Mon Sep 13 17:11:59 2004


Could be stack over flow.. I notice that you have not given any return
statement.

Rgds,
Karthick S.

(c)-----Original Message-----
(c)From: ilugc-bounces@xxxxxxxxxxxxx
(c)[mailto:ilugc-bounces@xxxxxxxxxxxxx] On Behalf Of Chakravarthi_Mohan
(c)Sent: Monday, September 13, 2004 17:00
(c)To: ilugc@xxxxxxxxxxxxx
(c)Subject: [Ilugc] C pgm - Recursive -segmentation fault
(c)Importance: High
(c)
(c)
(c)
(c)
(c)When I run this program, Recursive Function R(),
(c)
(c)Called only 523714 times, after that segmentation fault occurs WHY?
(c)
(c)void R()
(c){
(c)    static int i =0;
(c)    i++;
(c)    printf("%d\n",i);
(c)
(c)    R();
(c)}
(c)
(c)int main()
(c){
(c)    R();
(c)}
(c)
(c)What is the problem here?
(c)
(c)
(c)Regards,
(c)Chakravarthi Mohan
(c)
(c)***************************************************************
(c)***********
(c)This email (including any attachments) is intended for the
(c)sole use of the
(c)intended recipient/s and may contain material that is CONFIDENTIAL
AND
(c)PRIVATE COMPANY INFORMATION. Any review or reliance by others
(c)or copying or
(c)distribution or forwarding of any or all of the contents in
(c)this message is
(c)STRICTLY PROHIBITED. If you are not the intended recipient,
(c)please contact
(c)the sender by email and delete all copies; your cooperation in
(c)this regard
(c)is appreciated.
(c)***************************************************************
(c)***********
(c)_______________________________________________
(c)To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
(c)"unsubscribe <password> address"
(c)in the subject or body of the message. 
(c)http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
(c)



Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or 
Mailadmin@xxxxxxxxx immediately
and destroy all copies of this message and any attachments.

Other related posts: