From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kurt Kehler Subject: Re: Segmentation fault Date: Tue, 16 Apr 2002 15:30:40 -0400 (EDT) Sender: linux-c-programming-owner@vger.kernel.org Message-ID: References: Mime-Version: 1.0 Return-path: In-Reply-To: List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org On Thu, 11 Apr 2002, Hemant Mohan wrote: > I compiled this code with gcc-3.0.3 and ran it. It displays the output as: > > Easter in 2002 on 3/31 > > There was no segmentation fault or any other messages. Attachment easter.c > contains the source code with a small modification from yours. I only moved > the #include line before the definition of easter(). Hemant, Thanks for taking the time to do this. Moving the #include did not prevent the segmentation fault. Kurt Kehler