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
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