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

Write a French song phonetically in English. I’ve chosen this song... can anyone help please? Un peu plus sucré, un peu plus salé Non, moi je préfère plutôt qu
Carlos has 7 times as many red toy cars as blue toy cars. He has 56 total cars. How many more red cars does he have?
What is the net force on this object? Question 6 options: 3 N down 0 N, the forces are balanced 3 N up 5 N down
Phil lipid and professor tosol discuss the great dehydration. explain what you think occurred during the great dehydration. why are sports drinks recommended to
what are the 3 phases that make up interphase?
Why are individuals, companies, and governments required to constantly make choices about how to best utilize resources
For what value of x is line m parallel to line n? Enter your answer in the box. x = Line m is parallel to line n. Line m is above line n. A transversal line cu
what law gives you the legal right to know all about hazardous chemicals that you may be exposed to work this associate with those chemicals and what they do to
find the slope of a line whose equation is 3X+6Y=9
How did Great Britain exert significantly influence in China during the late 1800s?