Skip to content
Quiz · Pointers · lesson 6 of 8

Quiz — dereferencing nil

What happens when this program is built and run?

GO
package main

import "fmt"

func main() {
    var p *int
    fmt.Println(*p)
}

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way