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

Which of the following methods involves counting the number of organisms in a specific area? a. mark/recapture b. direct observation c. sampling d. indirect ob
5218 2/3*2137 3/8*145678 7/8
It's the officials' responsibility to insure that teammates are communicating effectively with one another. True or false
Is it possible for a population with a high birth rate to decrease in size.
Two main issues that caused the Civil War were slavery and the right to leave the Union. A. True B. False
Simplify 12 square root of 1764
Give an example of how satellites are used for communication?
the formula for the area of a trapezoid is A=1/2h(b1+b2) express b1 in terms of A, h and b2
Which of the following sentences requires a colon to be correct? A. The new dessert recipe called for equal parts of sugar, cream, peanut butter, and crushed pe
Sssssh, listen! said terry."i can hear her coming down the hallway." what word gives the reader a clue that what is happening is going to be funny.