9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Giacomo Tesio <giacomo@tesio.it>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>,
	9front@9front.org
Subject: Re: [9fans] 2c(2) error
Date: Tue, 10 Mar 2015 17:00:39 +0100	[thread overview]
Message-ID: <CAHL7psG2cEQkvfKc9JScL7+fAXm5RHn5otZfTLTdD1_AnHH0WA@mail.gmail.com> (raw)
In-Reply-To: <CAHL7psHuykUzuRiyPyPNLSfRm+-CobVFfrEtw+NcV75D1KNv4w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

Ehm... obviously I was talking about 2c(1)...

Too much coffe, today... :-D

2015-03-10 16:53 GMT+01:00 Giacomo Tesio <giacomo@tesio.it>:

> 2c(2) states:
>
> Array initializers can specify the indices of the array in
>>   square brackets, as
>>       int a[] = { [3] 1, [10] 5 };
>>   which initializes the third and tenth elements of the
>>   eleven-element array a.
>
>
> This is somewhat confusing: the third and the tenth element should have
> index 2 and 9. Moreover if the tenth element is actually referred by index
> 10, why the array should hold eleven elements?
>
> A simple check shows that actually the array has 11 elements and the one
> initialized are the forth and the eleventh.
>
>
> Giacomo
>

[-- Attachment #2: Type: text/html, Size: 1373 bytes --]

      reply	other threads:[~2015-03-10 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10 15:53 Giacomo Tesio
2015-03-10 16:00 ` Giacomo Tesio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHL7psG2cEQkvfKc9JScL7+fAXm5RHn5otZfTLTdD1_AnHH0WA@mail.gmail.com \
    --to=giacomo@tesio.it \
    --cc=9fans@9fans.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).