MCQs > IT & Programming > Kotlin > You are attempting to assign an integer variable to a long variable, but Kotlin compiler flags it as an error. Why?

Kotlin MCQs

You are attempting to assign an integer variable to a long variable, but Kotlin compiler flags it as an error. Why?

Answer

Correct Answer: There is no implicit conversion from Int to Long

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it