People
Companies
Institutions
Jobs
Q&A
News
AI Dasatoo
Log in
Home
Courses
Tutors
Books
Q&A
Ask and answer questions to make information more available to wider audiences.
Tags
Latest
Ask Question
Sophia Isaakson
@
isaaksonsophia
06, Jun 2023 12:00 AM
scope of a variable
What is the scope of a variable?
answers
2
Answer 1
Samantha Jeanes
@
jeanessamantha
12, Jun 2023 05:51 PM
Scope of a variable in the Go language is cateGorized into two types
Local variables these variables are either declared inside a function or a block
Global variables these variables are declared outside the function or a block
Answer 2
Grace Jeanes
@
jeanesgrace
12, Jun 2023 05:24 PM
The scope of a variable means the part of a program where the particular variable can be accessed. In the Go language, every variable is statistically scoped that means the scope of a variable is declared at compile time itself.