Qtr No. 213, New Town Yehlanka Indore 454775
What’s the output of the following code?
package main
import "fmt"
const (
varA = iota
varB = iota
varC = iota
)
const (
varD, varE, varF = iota, iota, iota
)
func main() {
fmt.Println(varA, varB, varC, varD, varE, varF)
}
0 0 0 0 1 2
0 1 2 0 1 2
0 1 2 0 0 0
0 1 2 3 4 5
To get all Go Programming Language - Assessment Exam questions Join Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in