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

A triangle has side lengths of 23 in, 27 in, and 30 in. Classify it as acute, obtuse, or right.
a 400-kg stopped at an intersection is rear-ended by a 1600-kg truck moving at 10 m/s. If the car was in neutral and the brakes were off, so that the collision
Danny wants to write a story about a teenager who suddenly becomes the leader of a large corporation. But he doesn’t want the teenager to tell his own story. He
Radio listeners were asked to call in and pick their two favorite rodents. The listeners had 4 choices: Woodchuck, Prairie dog, Beaver, and chipmunk. Which of t
"Life" and "liberty" are examples of __________
What is the substance responsible for providing us quick (instant) energy to deal with emergency situations.?
how to find answer for if a^7=7777 and a^6/b=11, what is the value of ab?
Rewrite 5 − 6 using the additive inverse and display the new expression on a number line.\
Research involves all of the following except __________. A.asking questions B.reading critically C.plagiarizing findings D.gathering information
Which Portugal denied this explorer request to sail to the new world