ibbibhat4381 ibbibhat4381
  • 16-12-2017
  • Computers and Technology
contestada

When subscripts are used to specify character positions in a string, the last character subscript is the same as the string's length?

Respuesta :

tonb
tonb tonb
  • 18-12-2017
Not true. If I would store the text "ABC" the subscripts would be:

buffer[0] == 'A'
buffer[1] == 'B'
buffer[2] == 'C'

As you can see, subscript 2 points to the last character, yet the length is 3.
Answer Link

Otras preguntas

why did foreign powers treat the US government under the Articles of Confederation with scorn?
Which of the objects is living or nonliving: Bacteria, virus, moss, you, a lemon seed, the air, bread, lettuce and rocks?
Why aren't all minerals gemstones?
Find the additive inverse of 18/23
Modern Western ideas about freedom, the value of the individual, forms of government, and systems of law came from __________.
Modern Western ideas about freedom, the value of the individual, forms of government, and systems of law came from __________.
Find the circumference of the circle 30m. use 3.14 for n
Why did the Berlin Conference occur?
how can paleontologists help us understand the past
what are three important types of forces