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

A hybrid flower would have the genotype _____.
Find the area of the triangle
What theme does the following excerpt from Franz Kafka's The Metamorphosis deal with? This was how Gregor received his food each day now, once in the morning wh
3n - 5=-8 (6+5n) what is the answer
What is representative organism? Please need help now!!!!!!!!!!!!!!!!!!!!!!1
How did Hinduism Buddism and islam become established in southeast asia
Which equation describes a line with a slope of 1 and includes the point (1,2)
Ancient Greek and Roman societies made sense of their world through _____.
write the sum of the numbers have the product of their GCF and another sum of 30 + 54
Whisper-talk the numbers as you fill in the bkanks