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

After the French Revolution of 1791 and the Napoleonic Wars, European leaders’ greatest goal was to
what is 1/10 of 60,000
Simplify 3(0.3x + 0.1) + 0.2x
Ralph has a spool with 9.8 meters of wire. How many 0.14 meter pieces of wore can he cut for the spool?
2X+y=13 y=X-5 Solve using substution
Why did Columbus believe he had reached Asia when he had actually traveled less than halfway there? A. He met people who spoke Arabic. B. Columbus believed t
Which is a sentence fragment? A. He mentioned it, but nothing more. B.Yesterday waves crashed against the jetty. C. A cup of milk, two eggs, and a bowl. D
Which is the best way to rewrite this sentence in active voice? A good investment plan can now be gotten by all laborers. a. All laborers could now get a good
What is 6,007,200 and 32,005,008 in expanded form?
Thomas painted 4 pictures Maria painted twice as many pictures as Thomas how many pictures did they paint