Back home
中文
H7 / SECURITY RESEARCH NOTES

Chapter 9: Functions

  • Finding an address: the & operator, where %p is the conversion specification for an address.

  • Indirection operator: * (this operator is also sometimes called the dereference operator)

# 地址运算符: &
ptr = &bah;	// 后面跟一个变量名时,&给出该变量的地址

# 间接(或解引用)运算符:*
val = *ptr; // 后跟一个指针名或地址时,*给出存储在指针指向地址上的值

# 声明指针
int * pi; // pi是一个指向int类型变量的指针,* pi是 int 类型