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 compounds 2-butanol and 2-butene both contain (1) double bonds, only (3) carbon atoms (2) single bonds, only (4) oxygen atoms
According to one acid-base theory, a water molecule acts as an acid when the water molecule (1) accepts an H+ (3) donates an H+ (2) accepts an OH– (4) donates a
Compared to a 26-gram sample of NaCl(s) at STP, a 52-gram sample of NaCl(s) at STP has(1) a different density(2) a different gram-formula mass(3) the same chem
As an atom becomes an ion, its mass number(1) decreases(2) increases(3) remains the same
Why Do Hazel Eyes Change Color?
How did Madison think the necessary separation of powers among the three branches should be achieved ?
What are the main disadvantages of a partnership?
Which statement best explains the role of a catalyst in a chemical reaction? (1) A catalyst is added as an additional reactant and is consumed but not regenerat
An ion of which element has a larger radius than an atom of the same element? (1) aluminum (3) magnesium (2) chlorine (4) sodium
CeeCee recorded the number of necklaces for sale at 10 different locations and then arranged the numbers from smallest to largest. The numbers of necklaces for