Identify the CORRECT statement with respect to the code given below:
//Assume all necessary imports are done
package main
import ("fmt")
func main() {
var a int
var b int = 2
var c = 3
d := a + b
fmt.Println(d)
}
The output would be 2 as the variable a will have the default value of 0
The output can be anything as the variable a is not initialized
Error in code as the declaration of variable ‘c’ is not proper
Error in code as variable ‘c’ is declared but not used
To get all Infosys Certified Go Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee