MCQs > IT & Programming > Go (Programming Language) > From where is the variable myVar accessible if it is declared outside of any functions in a file in package myPackage located inside module myModule?

Go (Programming Language) MCQs

From where is the variable myVar accessible if it is declared outside of any functions in a file in package myPackage located inside module myModule?

Answer

Correct Answer: It can be accessed anywhere inside myPackage, not the rest of myModule.

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