The third last character in a String str can be accessed by A. str[-3] B. str[-2] C. str[2] D. str[3]
Answers
Answered by
2
Answer:
c)str[2] since array counting starts at 0 instead of 1 it 0 as first 1 as second and 2 as third
Explanation:
Answered by
0
Answer:
A.str[-3]
for last characters the indexing starts with -1 so the third last character will be indexed -3
Similar questions
Social Sciences,
1 month ago
English,
1 month ago
Math,
2 months ago
Math,
2 months ago
Math,
11 months ago