Assume that word is a variable of type string that has been assigned a value. Write an expression whose value is a string consisting of the last three characters of the value of word. So if the value of word were "biggest" the expression's value would be "est".
.
.
Click on the title for the solution
.
.
word.substr(word.length()-3,3)
.
Click on the title for the solution
.
.
This is the answer:
:
word.substr(word.length()-3,3)
Comments
Post a Comment