Исходники и презентации
This commit is contained in:
11
lessons/slices_and_arrays/arrays_allocation_2/main.go
Normal file
11
lessons/slices_and_arrays/arrays_allocation_2/main.go
Normal file
@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
//go:noinline
|
||||
func allocation() *[10]int {
|
||||
var data [10]int
|
||||
return &data
|
||||
}
|
||||
|
||||
func main() {
|
||||
_ = allocation()
|
||||
}
|
||||
Reference in New Issue
Block a user