Computer Science, asked by sashish8200, 2 months ago

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 samarthkrv
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 5567kanchan
0

Answer:

A.str[-3]

for last characters the indexing starts with -1 so the third last character will be indexed -3

Similar questions