Junior — Senior
What output will program №72 produce
livecode
Task condition
What will be printed when executing the following Go code:
type X struct {
V int
}
func (y X) S() {
fmt.Println(y.V)
}
a := X{123}
defer a.S()
a.V = 456
livecode
Task condition
What will be printed when executing the following Go code:
type X struct {
V int
}
func (y X) S() {
fmt.Println(y.V)
}
a := X{123}
defer a.S()
a.V = 456