Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2002 17:21:42 +0200
From:      Samuel Tardieu <sam@inf.enst.fr>
To:        Joe Talbott <josepht@cstone.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: gcc2.95.4 pointer not defined
Message-ID:  <2002-10-09-17-21-42%2Btrackit%2Bsam@inf.enst.fr>
In-Reply-To: <20021009151803.GA14701@copper.eng.cstone.net>
References:  <20021009151803.GA14701@copper.eng.cstone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On  9/10, Joe Talbott wrote:

| /* pointer.c - pointer test */
| 
| #include <stdio.h>
| #include <stdlib.h>
| 
| int main (void) {
|   int *ip;
| 
|   *ip = 50;
| 
|   printf ("%d\n", *ip);
| 
|   return (EXIT_SUCCESS);
| }
| 
| I've tried this on a RedHat box and a SunOS box both worked as expected.

I don't get it, is there a pun? Segmentation fault seems quite reasonnable
to me...

  Sam


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2002-10-09-17-21-42%2Btrackit%2Bsam>