MCQs>IT & Programming>Kotlin>Which line converts the binaryStr, whish contain only 0s and 1s, to an integer representing its decimal value? val binaryStr = "00001111"
Kotlin MCQs
Which line converts the binaryStr, whish contain only 0s and 1s, to an integer representing its decimal value? val binaryStr = "00001111"
Answer
Correct Answer: Val myInt = binaryStr.toInt(2)
Explanation:
Note: This Question is unanswered, help us to find answer for this one