summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c45
1 files changed, 28 insertions, 17 deletions
diff --git a/05/main.c b/05/main.c
index 3b094ad..5d4b282 100644
--- a/05/main.c
+++ b/05/main.c
@@ -7,22 +7,33 @@
/* R,S,T */
/* } *Foo[sizeof(unsigned long)]; */
/* typedef int A[T]; */
+/* */
+/* typedef struct A { */
+/* int x, y; */
+/* long double c; */
+/* unsigned long d; */
+/* char e[3]; */
+/* long f; */
+/* } A; */
+/* */
+/* typedef union B{ */
+/* int x; */
+/* struct { */
+/* int y; */
+/* struct {long z; } c; */
+/* } c; */
+/* }B; */
+/* */
+/* typedef int x[sizeof(A)+sizeof"hello"]; */
+/* typedef int y[sizeof(struct B)]; */
-typedef struct A {
- int x, y;
- long double c;
- unsigned long d;
- char e[3];
- long f;
-} A;
+static unsigned int x;
+static unsigned int y;
+static unsigned int z[1000];
+static unsigned int w;
-typedef union B{
- int x;
- struct {
- int y;
- struct {long z; } c;
- } c;
-}B;
-
-typedef int x[sizeof(A)+sizeof"hello"];
-typedef int y[sizeof(struct B)];
+/*
+NOTE: THIS MUST WORK
+int x[] = {1,2,3}
+sizeof x
+*/