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

The electron configuration notation for the element with atomic number 11 is
what were the reasons for issuing the declaration of neutrality?
The following sentence has been revised in several ways. Which of the revisions does not improve the awkward or illogical construction? Fustian writing is where
The 2011 Emmy Award winner for "Outstanding Lead Actor in a Comedy Series,” starred opposite "The Big Easy" actress in the 2011 revival of what Broadway play?
what did european thinkers believe about the human mind in the 1700s
A market initially has 20​ firms, each with a 5 percent market share. of the​ firms, 55 propose to​ merge, leaving a total of 1616 firms in the industry. are th
According to the action research model, before diagnosing the need for change, the:
Summarize the process by which Panama became an independent country, in control of all of its land. I need help :(
what is the y intercept of y=2x+3
solve 3.8y + 4/7 x + 2 = 0 for y