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

ASAP pls will mark brainiest
Questions to ask yourself when writing a summary
So I'm writing an essay on why homework should be optional but I need to write a counterargument for it. What does it mean, give me a few example sentences of a
An orbital can at most hold how many electrons? 4 electrons 2 electrons 1 electron 3 electrons
Please help me with this coordinate question!!! (DUE TODAY!!!) plz help ❤️
Allen Boating Company manufactures special metallic materials and decorative fittings for luxury yachts that require highly skilled labor. Allen uses standard c
discuss two reasons, other than language , why canada does not fit the natuon-state concept.​
Which of the following did the first 5 points of Wilson's Fourteen Points address? A. Freedom of the seas B.removal of trade barriers C. Arms reduction D.
in to kill a mockingbird Scout has two reasons for wanting to quit Jem and Dill’s Radley game. What are they?
how is the effect of mystery created through the structure of the story