MCQs > IT & Programming > Kotlin > In this code snippet, why does the compiler not allow the value of y to change? For(y in 1..100) y+=2

Kotlin MCQs

In this code snippet, why does the compiler not allow the value of y to change? For(y in 1..100) y+=2

Answer

Correct Answer: Y is an implicitly immutable value

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

More Kotlin MCQ Questions

search

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it