The correct function to get the length of a string in Kotlin language is ??

(A) str.length

(B) string(length)

(C) lengthof(str)

(D) None of these

View Answer

(A) str.length