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

Choose three number from 1 to 6. Write the numbers in an addition sentence. Show two ways to find the sum
Two organs difficult to repair using stem cells
a typical passage through the Panama Canal takes about how long
How do I multiply a 2-digit number by 20 using a number line?
What changes did the Mandate System did to Israel after WWI?
how many square feet of paper do you need to cover a cube with a side 10 in. long? Round your answer to two decimal places
Which of the following corrects the error in meaning and usage in the sentence below? if we do not accelerate, we will be late for the invoke ceremony at the ch
can help me plzz b) e) h) c) f) i) :(( <3
Why do you think the Europeans supported the colonists rather than Great Britain?
Levi's mom gave him $30 so he can go to the movies.He used 1/5 of the money to pay for his movie ticket.He spent 1/3 of what he had left on popcorn and candy.Ho