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

Perform the indicated in operation and write in standard form. (2-3i)+(4+8i)
a tree is standing by the side of the building. 2/5th of the height of the tree is above the building level. the building is 9 metres high. what is the heigh
steps taken to conserve the flora and fauna of the country ?
y=2x-1 Graph the equation? (steps please thanks!)
The following function defines a recessive sequence: f(0) = -4f(1) = 12f(n) = -3•f(n -1) - 2•f(n - 2); for n > 1Which of the following sequences is defined b
the model an=395n +5419 describes the cost of tution and fees at public colleges in academic year n, where n=1 corresponds to the school year ending in 2007,n=2
A bedroom measures 15 ft by 14 ft with a closet that measures 4 ft by 8 ft. if carpet costs $4.25 per foot, how much will it cost to carpet the room and closet.
If T(n) = 2-7n, what is the 1st term?
if each small tile cost 15 pesos & each big tile should emmanuel use to economize in tilin his floor? explain why
what is the y-intercept of the function: f(x)=x+4