Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 v7 ucbtopaz-1.8; site ucbtopaz.CC.Berkeley.ARPA Path: utzoo!linus!security!genrad!decvax!tektronix!ucbcad!ucbvax!ucbtopaz!vmicro1 From: vmicro1@ucbtopaz.CC.Berkeley.ARPA Newsgroups: net.unix Subject: Re: argc[argv] Message-ID: <360@ucbtopaz.CC.Berkeley.ARPA> Date: Wed, 14-Dec-83 03:11:39 EST Article-I.D.: ucbtopaz.360 Posted: Wed Dec 14 03:11:39 1983 Date-Received: Sat, 17-Dec-83 01:10:43 EST References: <14456@sri-arpa.UUCP> Organization: Univ. of Calif., Berkeley CA USA Lines: 14 One thing I enjoy doing to test the whimsy of C compilers is: char *x; char y; y = x[1]; y = 1[x]; What sort of code (if any) do the two lines generate? Theoretically, they are identical; at least one compliler (VAX-11C under VMS) complains (it requires an lvalue in the second form); most let it slide. ----