數組指針試題

#include<iostream> using namespace std; int main() { int data[][3] = { 10,20,30,40,50,60 }; int(*p)[3]; p = data; cout << p[0][0] << "," << *(p[0] + 1) << "," << (*p)[2] <<endl; } 這個題目碰到好屢次了也沒咋注意,
相關文章
相關標籤/搜索