🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5816

valid program?

#5816
From: Maarten Litmaath
Date: Wed, 22 Mar 1989 19:02
18 lines
794 bytes
#define		a()/
#define		b()*

main()
{
	a()b() is this ANSI conformant? b()a()

	exit(0);
}

/*
 * Doesn't K&R2 say comments are handled in the preprocessing phase?
 * Our 4.3BSD and SysV cc's accept this program
 * (/lib/ccom strips comments too).
 */
-- 
 Modeless editors and strong typing:   |Maarten Litmaath @ VU Amsterdam:
   both for people with weak memories. |maart@cs.vu.nl, mcvax!botter!maart
Technical Details
Message-ID: <2203@solo1.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart
From: maart@cs.vu.nl (Maarten Litmaath)
Newsgroups: comp.std.c
Subject: valid program?
Message-ID: <2203@solo1.cs.vu.nl>
Date: 22 Mar 89 19:02:58 GMT
Organization: V.U. Informatica, Amsterdam, the Netherlands
Lines: 18