Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: utzoo!lsuc!dave From: dave@lsuc.UUCP (David Sherman) Newsgroups: net.lang.c Subject: printf("abcd"+1); Message-ID: <615@lsuc.UUCP> Date: Mon, 22-Apr-85 13:41:12 EST Article-I.D.: lsuc.615 Posted: Mon Apr 22 13:41:12 1985 Date-Received: Mon, 22-Apr-85 14:59:21 EST Reply-To: dave@lsuc.UUCP (David Sherman) Organization: Law Society of Upper Canada, Toronto Lines: 14 I was fixing some year-old CAI code just now, and spotted the following, which obviously resulted from a s/,/+1,/ which I didn't check too carefully: printf("\n\nQUESTION %d of %d:\n"+1, sp-s85facts+1, maxquests); Naturally, the C compiler didn't complain, since it's perfectly legal C. Lint passes it too; and I'd never noticed that my output was missing its first newline! Dave Sherman -- {utzoo pesnta nrcaero utcs hcr}!lsuc!dave {allegra decvax ihnp4 linus}!utcsri!lsuc!dave