The last index number of string is (length-1) or -1.
1 Like
True
Reason — The last index of a string is (length - 1). Strings also support negative indexing, where -1 refers to the last character.
Answered By
An empty string is a string that has zero number of characters.
"abc" * 2 will give abc*2 as output.
Multiplication operator (*) replicates the string.