一个有关数组的间接引用问题
要间接引用一个数组 必须要设一个指针变量吗?如果int a[100];
要引用a[5] 可以用*(a+5)吗?
程序代码:printf("%#x\n",*p);
}
这个不行
error C2440: '=' : cannot convert from 'int *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\选择排序.cpp(8) : warning C4508: 'main' : function should return a value; 'void' return type assumed
执行 cl.exe 时出错.
选择排序.obj - 1 error(s), 0 warning(s)