> For the complete documentation index, see [llms.txt](https://denglj.gitbook.io/essential-go/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://denglj.gitbook.io/essential-go/02-basic-types/zhi-zhen.md).

# 指针

指向一个类型的指针，是该类型的值在内存中的地址。

指针的[零值](/essential-go/02-basic-types/ling-zhi.md)是`nil`。

不像C，Go不支持指针运算。你可以根据一个地址拿到其存储的值，但你不可以对地址(指针)进行加减运算。

**指针基本用法**

```go
package main

import (
	"fmt"
)

func main() {
	var a int = 4
	pa := &a
	fmt.Printf("Address of a variable in memory is %p. Its value is: %d\n", pa, *pa)
}
```

学习更多关于[指针](/essential-go/06-pointers.md)的知识。
