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

please help, will give brainliest
If the premium had been $9,888 for a two-year period, how should the prepaid amount at December 31, 2019, be reported on the balance sheet?
According to Le Châtelier's principle, how would a change in pressure affect agaseous system in equilibrium?​
Given the following items and costs as of the balance sheet date, determine the value of Light Company's merchandise inventory. - $2,400 goods sold by Light to
Given: RST is circumscribed about circle A. A. 180 B. 45 C.less than 90 D. 90 and why plz? :)
You have just finished reading an article in a personnel journal about compensation plans. The turnover rate in your firm is too high, especially the cost of lo
If increasing the number of goods produced is one way to increase productivity what is the other way to increase productivity? A. Raise the price of the goods
In addition, variable factory overhead is applied at $7.50 per unit. Fixed factory overhead is applied at 150% of direct labor cost per unit. The vacuums sell f
Find the molality of this aqueous solution 15.0% by mass kBr (119g/mol).
When Mendel crosses a plant with Greenpeace and a plant with yellow peas what color did the offspring have