mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-14 22:38:46 +00:00
19 lines
250 B
C
19 lines
250 B
C
typedef struct {
|
|
char a;
|
|
struct {
|
|
int b[4];
|
|
};
|
|
long c;
|
|
} Temp;
|
|
|
|
int main() {
|
|
const Temp temp = {1, {{2, 3, 4, 5}}, 6};
|
|
|
|
Temp temp2;
|
|
temp2 = temp;
|
|
|
|
int sum = temp2.a + temp2.b[2] + temp2.c;
|
|
|
|
return sum == 11;
|
|
}
|