cs-self-learning/Cprogramming/last_skill_pointer.c
2023-05-26 08:45:03 +00:00

19 lines
No EOL
576 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <stdio.h>
int main() {
/**
* int *p1[6]; 指针数组
* int *(p2[6]); 指针数组
* int (*p3)[6]; 二维数组指针
* int (*p4)(int, int); 函数指针
*
*/
//c语言标准规定对于一个符号的定义编译器总是从**它的名字**开始读,然后按照优先级顺序依次解析
//优先级顺序: 定义中被括号()扩起的,
// 后缀操作:()表示这是一个函数,[] 表示这是一个数组
// 前缀操作: * 表示指向xxx的指针
return 0;
}