adplus-dvertising
frame-decoration

Question

What does function length do in String class?

a.

Returns length of string including null character

b.

Returns length of string excluding null character

c.

Returns length of substring

d.

Returns size of string in bytes

Answer: (b).Returns length of string excluding null character

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does function length do in String class?