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

you are purchasing four items and want to calculate the tax. The items cost $2.50, $8.75, $3.00, and $10.25. The tax rate is 6%. How much is the tax? PLEEEEEEEE
Radioactive​ uranium-235 has a​ half-life of about 700 million years. Suppose you find a rock and chemical analysis tells you that only one sixteenth of the​ ro
What was the goal of the policy of appeasement
Help with this Spanish homework
which famous scientist first used a telescope for astronomical observations ​
Plz help me WILL GIVE BRAINLIEST
what will be the output if the user enters 2​
Hank draws a line with a zero slope through the points (-2,4) and (3.b).which value of b could represent hanks second point ?
2. Describe one long-term goal that you have and at least two things you will need to do in order to accomplish that goal.
Kim is driving from Miami to Key West. The graph shows her distance from Key West. During which interval is Kim driving the fastest?​