mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
17 lines
275 B
C
17 lines
275 B
C
void init(int row, int col, int a[4][5]) {
|
|
for (int i = 0; i < row; i++) {
|
|
for (int j = 0; j < col; j++) {
|
|
a[i][j] = i * j;
|
|
}
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
int a[4][5];
|
|
int row = 4, col = 5;
|
|
|
|
init(row, col, a);
|
|
|
|
return a[2][3] == 6;
|
|
}
|