Gotchas: Difference between revisions

m
Line 143:
Indexes are 1-based and s[0] triggers a run-time error.<br>
<small> (It surprises me to read Andrew Koenig in ctraps.pdf saying
"In most languages, an array with n elements normally havehas subscripts ranging from 1 to n inclusive.")</small>
 
Novice users often confuse a &= b with a = append(a,b):
7,806

edits