Ask Question

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.

+1
Answers (1)
  1. 12 November, 11:58
    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?
Find 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 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