Variables de pointeur
var num int = 5
// create the pointer variable
var ptr *int = &num
SAMER SAEID
var num int = 5
// create the pointer variable
var ptr *int = &num
// Program to assign memory address to pointer
package main
import "fmt"
func main() {
var name = "John"
var ptr *string
// assign the memory address of name to the pointer
ptr = &name
fmt.Println("Value of pointer is", ptr)
fmt.Println("Address of the variable", &name)
}