/* 3. ´ÙÀ½ ÇÁ·Î±×·¥ÀÇ Ãâ·ÂÀ» ½á¶ó. */ #include #include void swap(int x,int &y) { int t = x; x = y; y = t; } void What(int *a,int row,int col) { int n = row*col - 1; for(int i=0; i 6) { array[i][j] = 1; } else { array[i][j] = data[count] - '0'; } count++; } } What((int*)array,3,3); for (i=0; i<3; i++) { for(int j=0; j<3; j++) { printf("%d ",array[i][j]); } printf("\n"); } }