summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c41
1 files changed, 23 insertions, 18 deletions
diff --git a/05/main.c b/05/main.c
index 35d7917..a8149f8 100644
--- a/05/main.c
+++ b/05/main.c
@@ -27,23 +27,28 @@
/* typedef int x[sizeof(A)+sizeof"hello"]; */
/* typedef int y[sizeof(struct B)]; */
/* */
-static unsigned int x={55};
-static char *s = "hello";
-static char *t = "goodbye";
-static char u[8] = "hellothe";
-static char v[100] = "re my";
-static char w[] = "friendly";
-static char x_[] = "hi";
-typedef int A[sizeof x_ + sizeof u];
+/* static unsigned int x={55}; */
+/* static char *s = "hello"; */
+/* static char *t = "goodbye"; */
+/* static char u[8] = "hellothe"; */
+/* static char v[100] = "re my"; */
+/* static char w[] = "friendly"; */
+/* static char x_[] = "hi"; */
+/* typedef int A[sizeof x_ + sizeof u]; */
+/* */
+/* static int a[5] = {1,2,3}; */
+/* static char b[6][7] = {{'a'},{'b'},{'c'},{'d'},{'e'}}; */
+/* static char __b[][7] = {{'a'},"hello",'r'}; */
+/* static int _u = sizeof __b; */
-static int a[5] = {1,2,3};
-static char b[6][7] = {{'a'},{'b'},{'c'},{'d'},{'e'}};
-static char __b[][7] = {{'a'},"hello",'r'};
-static int _u = sizeof __b;
+/* struct { */
+/* int a; */
+/* long b; */
+/* } x1[] = {0x1234567890, 1ul<<60|1ul<<3, 77}; */
+/* int y1 = 0x12345678; */
+typedef int R[sizeof "hi" / sizeof "hi"[0]];
-union {
- int a;
- long b;
-} x1[3] = {0x1234567890, 1ul<<60|1ul<<3, 77};
-int y1 = 0x12345678;
-typedef int R[sizeof x1];
+/* struct { */
+/* int x[2], y; */
+/* } test = {3, 5}; */
+/* unsigned marker = 0xdeadbeef; */