Gotchas: Difference between revisions
m
→Array Indexing
Puppydrum64 (talk | contribs) (→Arrays) |
Puppydrum64 (talk | contribs) m (→Array Indexing) |
||
Line 170:
<syntaxhighlight lang="C">int foo[4] = {4,8,12,16};</syntaxhighlight>
However, arrays are zero-indexed, so in your code you'll never actually want to read from/write
Chances are this will compile even though it's not something you really want to have happen.
|