mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 22:38:31 +00:00
commit
b8e4a27551
@ -331,8 +331,8 @@ printf("%d\n", (char)100.0);
|
|||||||
///////////////////////////////////////
|
///////////////////////////////////////
|
||||||
|
|
||||||
// 指针变量是用来储存内存地址的变量
|
// 指针变量是用来储存内存地址的变量
|
||||||
// 指针变量的声明也会告诉它所指向的数据的类型
|
// 指针变量的声明也会告诉它所指向的数据的类型
|
||||||
// 你可以得到你的变量的地址,并对它们搞乱。
|
// 你可以使用得到你的变量的地址,并把它们搞乱,;-)
|
||||||
|
|
||||||
int x = 0;
|
int x = 0;
|
||||||
printf("%p\n", &x); // 用 & 来获取变量的地址
|
printf("%p\n", &x); // 用 & 来获取变量的地址
|
||||||
|
Loading…
Reference in New Issue
Block a user