C C++/C C++ (visual studio)
2차원 배열 매개변수 전달 방법
this?
2015. 10. 30. 01:43
// 두번째 차원의 배열 요소만 명시하여 전달 void funcTest(char (*score)[6], int row) { int i, j; for(int i=0; i<row; i++) { for(j=0; j<6; j++) { printf("%c", score[i][j]); } } //..... //... } char base_score[10][6]; // 배열초기화 // ... // ... funcTest(base_score, 10);