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

Identify the following as theoretical or empirical. Since there are 6 faces on a die, there is 3/6 (or 1/2) chance of rolling a die and getting a prime number.
Suppose the leader of a camping trip is putting together a trail mix raisins, and chocolate chips. The mix is to consist of equal parts raisins and chocolate. I
Moderate injuries are generally
How can I put -2-3=5/4(-2*(2)) into slope intercept form
Write as percents 1) 3/5 2)7/8 3)4/25 4)27/50 Write as fractions 1)50% 2)34% 3)56% 4)33 1/3%
What is the measure of AC? А. 299 В. 122 с. 58 D. 116°
ASAP ANSWER THIS I NEED TO PASS
Liliana is using dark power crystals to raise an army of zombies. She has 5 55 dark power crystals, and each crystal can raise 1 0 1010 zombies. How Many Zombie
Bo is buying a board game that usually costs B dollars. The game is on sale and the price has been reduced by 18 Which of the following expressions could repres
What is the solution to the system of equations shown below?x-­ y + z = 0­-5x + 3y ­- 2z = ­-12x ­ - y + 4z = 11a. (0, 3, 3)b. (2, 5, 3)c. no solutiond. infinit