Is there any difference between the usage of the size() and the length() function?

Hương Trang

New member
Is there any difference between the usage of the size() and the length() function?
A. Yes
B. No
 
Answer: B
Explanation: The size() and length() functions both return the number of characters that constitute the string given and can be used interchangeably from a utilitarian standpoint. There is absolutely no difference between the two functions.
 

Tìm kiếm

Back
Top