Ask Question
2 March, 11:18

Given a String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String referred to by sentence.

+4
Answers (1)
  1. 2 March, 13:53
    0
    Python:

    sentence = "this is the sentence."

    size = len (sentence)

    C++:

    string sentence = "this is the sentence."

    int size = sentence. size ()

    * Remember strings are just arrays of characters.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given a String variable named sentence that has been initialized, write an expression whose value is the number of characters in the String ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers