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

Tania took selfies with her 8 cousins. Each cousins is in 2 or 3 picture. There are exactly 5 cousins on each picture. How many selfies did Tania take?
Because we are a media-oriented society, we are far more attentive listeners when we watch tv than when we listen to others in interpersonal situations.
How did China create an effective government during the postclassical era?
Melanie paid $42.50 for 3 adult tickets and 2 student tickets at Theater A. Drew paid $47 for 4 student tickets and 2 adult tickets at Theater A. Theater B char
how do we now that caramelizing suger is a chemical change​
What is the median of 17,23,8,5,9,16,22,11,13,15,17,18
The artist primarily used ____ in the sculpture
Which statement conveys the idea in the most concise and precise manner? A) The crowd roared as the goal was scored. B) The crowd cheered loudly as the g
Which answer best describes how Democratic-Republicans during Jackson's era felt about the Constitution? They thought it was a living document that should be re
A dolphin swims 24 miles in 1.5