kolbikirk4003 kolbikirk4003
  • 11-01-2020
  • Computers and Technology
contestada

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.

Respuesta :

pedicaboegovos
pedicaboegovos pedicaboegovos
  • 12-01-2020
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.

Answer Link

Otras preguntas

I need help on this math question but I can't draw what it says! How do I ask for help if I can't draw what it looks like??:((
a furniture store has a chair originally priced at $78 on sale for $46. what is the percent of decrease rounded to the nearest tenth?
Why do you think some facts are so hard to uncover? URGENT NEED THE ANSWER IN THE NEXT 15 MINS
Fill in details about the structure of the Declaration of Independence.
For a function f left parenthesis x right parenthesis equal b to the power of x comma space i f space b greater than 1 the graph will always
How to advise youth on the importance of safety
Which of the following might be an occasion for a speech about the side effects of a new cold medicine? Select all that apply. a seminar on treating the common
What are the negative impact of youth behaviour on yourself self or others socially
what is a way to discover the authors choices and how they affect the reader
The yard behind cindy's house is rectangular in shape and has a perimeter of 72 feet. If the length is l of the yard 18 feet longer than the width of the yard,