Complete the code to declare an integer variable with its zero value.
var num [1]In Go, declaring a variable with type int without initialization sets it to zero value 0.
Complete the code to declare a boolean variable with its zero value.
var flag [1]Boolean variables in Go default to false as their zero value.
Fix the error in the code by completing the variable declaration with the correct zero value type.
var name [1]Strings in Go default to an empty string "" as their zero value.
Fill both blanks to declare a float64 variable and assign its zero value.
var price [1] = [2]
Float64 variables use type float64 and their zero value is 0.0.
Fill all three blanks to declare a slice of strings with its zero value.
var fruits [1] [2] [3]
string instead of []string for slice.nil explicitly.A slice of strings is declared as []string. Its zero value is nil, assigned with =.
