最佳答案
我最近决定我必须最终学习 C/C + + ,关于指针,有一件事我并不真正理解,或者更确切地说,它们的定义。
How about these examples:
int* test;
int *test;
int * test;
int* test,test2;
int *test,test2;
int * test,test2;
现在,根据我的理解,前三种情况都是一样的: Test 不是 int,而是指向 one 的指针。
第二组示例有点复杂。在情况4中,test 和 test2都是指向 int 的指针,而在情况5中,只有 test 是指针,test2是“ real”int。案例6呢?和第五个案子一样吗?