LuckyIce1 LuckyIce1
  • 11-07-2018
  • Computers and Technology
contestada

If you know the maximum index of a string, what can you say about the maximum length of the string?

Respuesta :

tonb
tonb tonb
  • 11-07-2018
The length will be one more. If you have e.g., a string of length 3, the indices will be 0,1 and 2, with 2 being the maximum one. So the (maximum) length is always one more than the maximum index.
Answer Link

Otras preguntas

What would be an example of a time when you would want to use standard English? in a letter to the editor of a newspaper in an email to your best friend in a no
A 7-pound bag of lollipops costs $12.18. What is the unit price?
a jar has 654 jelly beans emily says the jar has 710 jelly beans, Find the percent error of emily's estimate
Darla ran 1/2 mile. Laura ran 5/8 mile. How many miles did they run altogether?
do you think people made sense of these contradictions? in the declarations of independence
what is the approximate value of a local maximum for the polynomial
(a divided by 10) + 44 + a = 180 What is the value of a? Show all steps.
What is the least multiple 6 and 8 have in commen explain
Could anybody look over my AP US Government Exam and correct me on anything I might have gotten wrong
Which best explains what figurative language is? A. Language that means something other than the literal B. Language that carries a comic or romantic tone O C.