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

The tallest mountain(s) in Pennsylvania is/are Poconos. Allegheny Plateau. Mt. Davis. Piedmont.
Identify whether the following is a simple sentence or a compound sentence. The musician did not perform last night; she had the flu. simple sentence compound s
Charlotte read a 608 page book in 16 hours last month how many pages per hour was that
Agricultural lobbyists have been urging the __________ of farm subsidies. a. continuation b. removal c. restructuring d. suspension
solve the equation cot 2x + cot x =3
Jazmeen can walk 1/4 mile every 1/5 hour. At this rate, how far can jazmeen walk in one hour .At this rate, how far can jazmin walk in one hour?
If a factor input is increased and all other factor inputs remain the same, what happens to the quantity supplied of this good at each and every price? a. it re
Which of the following best defines an engineer? a person who creates beautiful items a person who takes problems and turns them into innovative solutions a per
Solve the inequalities -150x ≥ − 2,400 and -336 ≥ − 21y.
The respiratory system should remove which of the following from your body? a. carbon monoxide b. carbon dioxide c. oxygen d. oxygen bioxide