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

what is the word form for 680,010
The real numbers greater than or equal to -6. Use builder set notation
What principle of colonial government gives people the voice and a vote in what the government will and will not do by electing officials? Enlightened governmen
How to solve mean median and mode
Give an example of an addition problem in which you would and would not group the addends differently to add
PLEASE HELP ME 25 POINTS
a jar of cookies contains 18 different types
Finley is trying to transmit a sound wave that will travel continuously, but he is frustrated by the excess noise. What kind of signal is Finley sending?
Read the sentence below and answer the following question: What had been the study and desire of the wisest men since the creation of the world was now within m
what common cutural heritage do china,japan,and korea share?