20 lines
276 B
Plaintext
20 lines
276 B
Plaintext
var A, B
|
|
var dummy
|
|
|
|
func main() {
|
|
println("On startup, A and B are ", A, " ", B)
|
|
A = 5
|
|
otherFunc()
|
|
println("Now, B is ", B)
|
|
}
|
|
|
|
func otherFunc() {
|
|
println("Here, A is ", A)
|
|
B = 2
|
|
}
|
|
|
|
//TESTCASE:
|
|
//On startup, A and B are 0 0
|
|
//Here, A is 5
|
|
//Now, B is 2
|