mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 15:08:52 +00:00
27 lines
407 B
C
27 lines
407 B
C
typedef struct {
|
|
char a;
|
|
struct {
|
|
int b[4][5];
|
|
};
|
|
double c;
|
|
} Temp;
|
|
|
|
void init(int row, int col, int arr[4][5]) {
|
|
for (int i = 0; i < row; i++) {
|
|
for (int j = 0; j < col; j++) {
|
|
arr[i][j] = i * j;
|
|
}
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
Temp temp;
|
|
int row = 4, col = 5;
|
|
init(row, col, temp.b);
|
|
|
|
Temp temp2;
|
|
temp2 = temp;
|
|
|
|
return temp2.b[2][3] == 6;
|
|
}
|