home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!shephard
- From: shephard@fraser.sfu.ca (Gordon Shephard)
- Subject: Re: ...so I typed this in straight from the book...
- Message-ID: <shephard.724148524@sfu.ca>
- Sender: news@sfu.ca
- Organization: Simon Fraser University, Burnaby, B.C., Canada
- References: <1g108jINNdg8@terminator.rs.itd.umich.edu>
- Date: Sat, 12 Dec 1992 08:22:04 GMT
- Lines: 12
-
- colinj@monet.ccs.itd.umich.edu (Colin Eric Johnson) writes:
-
- >I typed this in straight in from the Kelly & Pohl book and it
- >dumps core every time I try to run it. Lint Hates it (says
- >main returns a random value).
-
- > char c = 'a', *p, s[MAXSTRING];
- > printf("%s %c%c%s\n", s, *s + 6, *s + 7, *s + 1);
-
- "A Book on C: programming in C / AL Kelley, Ira Pohl - 2nd ed.
- Pg. 35
- printf("%s %c%c%s\n",s,*s+6,*s+7,s+1);
-