MCQs > IT & Programming > Go (Programming Language) > What restriction is there on the type of var to compile this i := myVal.(int)?

Go (Programming Language) MCQs

What restriction is there on the type of var to compile this i := myVal.(int)?

Answer

Correct Answer: MyVal must be an interface.

Explanation:

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

Go (Programming Language) Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Go (Programming Language) Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it