Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+24 votes
asked in CSC211_Winter2018 by (1 point)

2 Answers

+18 votes

We start at 0 for substring and almost all the formulas except length() where we actually count(start at 1).

answered by (1 point)
+13 votes

String's characters start at 0.
An example would be:
0 = H
1 = e
2 = l
3 = l
4 = o

answered by (1 point)
...