有请各路大牛帮忙,C语言指针问题。开发环境:VS code+clang
int a[2] = {1, 2};int *p = &a[0]; //这个可以编译通过!
//int *p;
//p = a; 编译不能通过!
错误消息:redefinition of 'p' with a different type: 'int' vs 'int *'
2018-02-12 22:04
2018-02-13 05:02
[此贴子已经被作者于2018-2-13 08:56编辑过]
2018-02-13 08:51
2018-02-13 09:05
2018-02-13 09:19
2018-02-13 10:31
2018-02-13 11:58
2018-02-13 15:32
2018-02-13 19:33