2021-08-09 17:41:25 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2021-10-04 21:45:05 +00:00
|
|
|
//
|
2021-08-09 17:41:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func f() {
|
|
|
|
w := 0
|
2021-10-04 21:45:05 +00:00
|
|
|
|
2021-08-09 17:41:25 +00:00
|
|
|
g(1000, &w) // Position 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func g(cnt int, p *int) {
|
|
|
|
if cnt == 0 {
|
|
|
|
*p = 10
|
|
|
|
return // Position 1
|
|
|
|
}
|
|
|
|
g(cnt-1, p)
|
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
f()
|
|
|
|
fmt.Printf("done\n") // Position 2
|
|
|
|
}
|