The _______ keyword is used to declare a variable whose value can change during program execution.
- const
- immutable
- let
- var
The var keyword in Go is used to declare variables whose values can change during the execution of the program. This flexibility allows for dynamic data storage and manipulation.
Loading...
Related Quiz
- How would you implement a custom Stringer interface for a struct in Go?
- You are designing a Go application to model a car dealership inventory. Explain how you would use structs to represent different types of vehicles in the inventory.
- What keyword is used to specify a condition in a switch statement in Go?
- What is the significance of the t.Fatal function in testing?
- What is the primary purpose of the go build command?