asked 77.9k views
1 vote
Each character in a string has a(n) _______________ which specifies its position in the string.

asked
User Wires
by
8.6k points

1 Answer

3 votes
The string is a sequence of characters.
Each character in a string has an index which specifies its position in the string.
The index of the first character is 0, the second character is 1, and so on.The character at the nth position has the index n.

answered
User Anoop Mishra
by
8.4k points

No related questions found