A

Admin • 833K Points
Coach

Q. Which function would you use to convert a string to an integer in Kotlin?

  • (A) stringToInt()
  • (B) convertToInt()
  • (C) toInt()
  • (D) parseInt()
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

The 'toInt()' function is used to convert a string to an integer in Kotlin.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.