Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created October 3, 2019 01:02
Show Gist options
  • Save 100daysofdevops/b1bd61596134f7288b8db4042ce9b747 to your computer and use it in GitHub Desktop.
Save 100daysofdevops/b1bd61596134f7288b8db4042ce9b747 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
a := [...]int{1,2,3}
b := &a
b[1] = 4
fmt.Println(a)
fmt.Println(b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment