From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public X-Google-Thread: 10db24,fec75f150a0d78f5 X-Google-Attributes: gid10db24,public From: Lawrence Kirby Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada) Date: 1996/04/10 Message-ID: <829143025snz@genesis.demon.co.uk>#1/1 X-Deja-AN: 146729204 x-nntp-posting-host: genesis.demon.co.uk references: <4kb2j8$an0@solutions.solon.com> x-mail2news-path: genesis.demon.co.uk organization: none reply-to: fred@genesis.demon.co.uk newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu Date: 1996-04-10T00:00:00+00:00 List-Id: In article tynor@atlanta.twr.com "Steve Tynor" writes: >In article <4kcpgkINNcku@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir > Kylheku) writes: > >| 1.3: If I write the code >| >| int i, j; >| >| can I assume that (&i + 1) == &j? >| >| A: Only sometimes. It's not portable, because in EBCDIC, i and j are >| not adjacent. > >What does this have to do with EBCDIC? i and j in this examples are >just identifier names of variables -- &i is the address of the >variable i. I has nothing whatsoever to do with the EBCDIC (or ASCII >or whatever character set you choose) value of the characters 'i' and >'j'. The answer is still "only sometimes", but not for the reason >given :-). Or did I miss a Date: header of "1 Apr"? I think you missed the reference to Peter Seebach's (alternative) FAQ. It may well have been first posted on April 1st. Try the following for instance: 9.2: I heard that structures could be assigned to variables and passed to and from functions, but K&R I says not. A: K&R I was wrong; they hadn't actually learned C very well before writing the book. Later, Ritchie got a job at Bell Labs, and worked closely with the authors of C, allowing the 2nd edition of the book to be much more accurate. -- ----------------------------------------- Lawrence Kirby | fred@genesis.demon.co.uk Wilts, England | 70734.126@compuserve.com -----------------------------------------