asked 30.0k views
0 votes
What is the difference
between length and capacity?

1 Answer

3 votes

Answer:

length increase by the number of character append to the string. The capacity is increased only when the current capacity is exceeded by the new length

Explanation:

answered
User Rajpurohit
by
9.2k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.