Google News
logo
Golang - Quiz(MCQ)
Which of the following is true about global variables in Go?
A)
Global variables are defined outside of a function, usually on top of the program.
B)
The global variables will hold their value throughout the lifetime of your program.
C)
A global variable is available for use throughout your entire program after its declaration.
D)
All of the Above

Correct Answer :   All of the Above

Advertisement