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

help me pleasssseeeee! THANK YOU
Which of these folk musicians was a member of The Weavers?
President Bush launched “Operation Restore Hope” to protect human rights in which country?
How do I solve this equation?3x-7y=-28 for y
In the 1950s and 1960s, US leaders feared that if they did not intervene, countries such as Vietnam would
The length of a rectangle is 3 times it’s width. The rectangles width is 4m. What is the area of the rectangle
How would a manufacturer benefit by using fewer scarce resources
Given 8.40 g of butanoic acid and excess ethanol, how many grams of ethyl butyrate would be synthesized, assuming a complete 100% yield?
What are two similarities between Bryan’s speech and the speech by Mary Elizabeth Lease?
which word is modified by adjectival phrase in the sentence below. The savings to the project manager at NASA were substantial. A)savings B)project C) were D)m