Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+24 votes
asked in CSC211_Winter2018 by (8 points)

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 (8 points)
+13 votes

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

answered by (8 points)
...