Ask Question

Given a string variable named sentence that has been initialized, write an expression whose value is the the very last character in the string referred to by sentence.

+5
Answers (1)
  1. 15 April, 09:41
    0
    Strings can usually be dealt with as arrays of characters.

    sentence[ - 1 ]

    sentence. substring (sentence. size () - 1);
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given a string variable named sentence that has been initialized, write an expression whose value is the the very last character in the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers