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

Classify the system of equations.-2x = -7-y7+ y = 2x + 2Click on the correct answer.intersectingparallelcoincident​
Read the following statement and identify the fallacy used. Most people don't own an ePhone 16. Most people don't drive a Corvette, either, overgeneralization a
Which of these quadrilaterals are rectangles?
Why does Paul cry at the end of part 2 in tangerine?
How do fungi benefit trees?
A compound is 2.00% H by mass, 32.7% S by mass, and 853% O by mass. What is its empirical formula? The final step is to use the mole ratios of the elements to w
what is the value of x in the equation 4x - 5 = -33
Fiscal policy is best described as
What is the sign of -9 (0/-3)? a) positive b) negative c) zero
What were the consequences of the Treaty of Versailles? - Think about your answer - what cause/s do you want to address? what consequences? - Identify what EVI