Eme*_*ire 0 c
C中的*是什么意思?我看到它在声明 char 或 FILE 变量时使用 ( char = *test) 这如何改变变量的行为方式?
char = *test
eml*_*lai 6
它取消引用一个指针:
*ptr = 42; // access the value that ptr points to, and set it to 42
或者它声明一个指针:
int* ptr; // the type of ptr is pointer to int
Mik*_*CAT 5
这种类型*称为“间接运算符”,*test意思是“从指针test指向的地方获取数据”。
*
*test
test
char保留用作关键字,因此char = *test除非char定义为宏,否则不会编译。
char
归档时间:
9 年,12 月 前
查看次数:
7575 次
最近记录: