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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public X-Google-Thread: 10db24,fec75f150a0d78f5 X-Google-Attributes: gid10db24,public From: tynor@atlanta.twr.com (Steve Tynor) Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada) Date: 1996/04/09 Message-ID: #1/1 X-Deja-AN: 146574989 sender: tynor@atlanta.twr.com (Steve Tynor) references: <4kb2j8$an0@solutions.solon.com> organization: Tower Technology newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu Date: 1996-04-09T00:00:00+00:00 List-Id: 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"? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Programming needn't be like penance or oat bran. Steve Tynor Internet: Steve.Tynor@atlanta.twr.com Tower Technology WWW: http://www.twr.com/