587
you are viewing a single comment's thread
view the rest of the comments
[-] turdas@suppo.fi 13 points 6 hours ago

§6.7.9 of the C11 standard says they have elements with indices:

If an array of unknown size is initialized, its size is determined by the largest indexed element with an explicit initializer. The array type is completed at the end of its initializer list.

[-] lime@feddit.nu 7 points 6 hours ago

it also states in section 6.7.7 ("type names") that

If the pointer operand points to an element of an array object, and the array is large enough, the result points to an element offset from the original element such that the difference of the subscripts of the resulting and original array elements equals the integer expression.

note also that your example is the only occurrence of the word "index" in the entire document that isn't just referring to the actual index at the end.

this post was submitted on 12 May 2026
587 points (100.0% liked)

memes

21213 readers
2179 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS