Article View: comp.lang.c.moderated
Article #2279Re: Good C Interview questions?
From: Michael J. Creutz
Date: Thu, 14 Mar 1996 02:30
Date: Thu, 14 Mar 1996 02:30
21 lines
998 bytes
998 bytes
>: Chris Sonnack <cjsonnack@mmm.com> wrote: >: >My personal favorite: >: > >: >Given: >: > char* A = "hello" ; >: > int i = 3 ; >: > >: >It's obvious that: >: > >: > A [i] == 'l' >: > >: >But what is: >: > >: > i [A] == ??? What's confusing about this? The "i'th element of A" is about as intuitive as you can get. Only frustrated fortran programmers would prefer the former :-). Mike
Technical Details
Message-ID:
<4i80c9$49k@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4h2s1m$l8@solutions.solon.com> <4h75c1$4nh@solutions.solon.com> <4hqebv$1k1@solutions.solon.com> <4hv081$jdt@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: creutz@wind.phy.bnl.gov (Michael J. Creutz) Newsgroups: comp.lang.c.moderated Subject: Re: Good C Interview questions? Date: 13 Mar 1996 20:30:33 -0600 Organization: Brookhaven National Laboratory Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4i80c9$49k@solutions.solon.com> References: <4h2s1m$l8@solutions.solon.com> <4h75c1$4nh@solutions.solon.com> <4hqebv$1k1@solutions.solon.com> <4hv081$jdt@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Newsreader: knews 0.9.3