sizeof structs and structs-in-structs working
This commit is contained in:
parent
09f3f9b450
commit
b5a498aa52
2 changed files with 85 additions and 12 deletions
11
05/main.c
11
05/main.c
|
@ -16,4 +16,13 @@ typedef struct A {
|
|||
long f;
|
||||
} A;
|
||||
|
||||
typedef int x[(unsigned)-3];
|
||||
typedef union B{
|
||||
int x;
|
||||
struct {
|
||||
int y;
|
||||
struct {long z; } c;
|
||||
} c;
|
||||
}B;
|
||||
|
||||
typedef int x[sizeof(A)];
|
||||
typedef int y[sizeof(struct B)];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue