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

Help! Thanks in advance!
An airplane flies 220 miles with a heading of 40 and then flies 180 miles with a heading of 170 How far is the plane from its starting point, and at what headin
The stock in Up-Towne Movers is selling for $48.20 per share. Investors have a required return of 11.2 percent and expect the dividends to grow at 3.6 percent i
how do you solve [(7x1/4)+(2x1/2)+(3x3/4)] divided by 12
I need help with these 3
What is the area of the following circle? Either enter an exact answer in terms of 3.14 and enter your answer as a decimal. d = 8
Graph the points. Then decide if AABC is acute, right, or obtuse. 9. A(-2,4), B(2,0), C(5,2)
Please Help Me With This Geometry Question!! Thank You :)
PLEASE HELPP!! Elie Wiesel believes the greatest teacher in his life was: A)strangers in the synagogue. B)his father. C)his music teac
is slaughterhouse five a tragedy