summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/05/main.c b/05/main.c
index 3e43bf8..b1c502c 100644
--- a/05/main.c
+++ b/05/main.c
@@ -3,13 +3,13 @@ static char x = -2;
typedef struct {
int x;
char y;
- int z;
+ long z;
+ long q;
} Structure;
long main(int argc, char **argv) {
-Structure s[] = {3, 5, -88,6,9,12};
- Structure *ps = s;
- int *p = &ps->z;
- return *p;
+ Structure s[] = {3, 5, -88,6,9,12,88,33};
+ Structure t = s[0];
+ return t.z;
}