menu
Qammunity
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
When subscripts are used to specify character positions in a string, the last character subscript is the same as the string's length?
asked
May 7, 2018
114k
views
5
votes
When subscripts are used to specify character positions in a string, the last character subscript is the same as the string's length?
Computers and Technology
college
Giraffesyo
asked
by
Giraffesyo
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
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.
Ivan Gritsenko
answered
May 13, 2018
by
Ivan Gritsenko
8.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 11, 2018
136k
views
When subscripts are used to specify character positions in a string the first character subscript is 0?
Zuraff
asked
Jun 11, 2018
by
Zuraff
7.8k
points
Computers and Technology
college
1
answer
5
votes
136k
views
asked
Apr 3, 2024
94.5k
views
Counting Atoms Section A: Identify the coefficients and subscripts in the following formulas. A) 3MgCl A) Coefficient: 3. B) Subscript: 1. C) Total of atoms: 4. D) Elements name: Magnesium Chloride.
Vmrvictor
asked
Apr 3, 2024
by
Vmrvictor
7.9k
points
Chemistry
high-school
1
answer
4
votes
94.5k
views
asked
Nov 6, 2024
168k
views
How do you tell if a chemical formula includes both a subscript and coefficient in simple terms? a) Subscripts and coefficients are the same thing in chemical formulas. b) A coefficient indicates the number
William YK
asked
Nov 6, 2024
by
William YK
8.5k
points
Chemistry
high-school
1
answer
3
votes
168k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity