summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-02 11:57:11 -0500
committerpommicket <pommicket@gmail.com>2022-02-02 11:57:11 -0500
commitf4a83337517c7f95adea7bc470a0dd9696597df8 (patch)
tree39c2af494bd9642fede97e4e1872214b054cb3ef /05/main.c
parent92293e83acc10197737f94933ab7c98cb1a151cd (diff)
various simplifications, start array initializers
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/05/main.c b/05/main.c
index 62b198b..fb2283e 100644
--- a/05/main.c
+++ b/05/main.c
@@ -27,7 +27,7 @@
/* typedef int x[sizeof(A)+sizeof"hello"]; */
/* typedef int y[sizeof(struct B)]; */
-static unsigned int x=55;
+static unsigned int x={55};
static char *s = "hello";
static char *t = "goodbye";
static char u[8] = "hellothe";
@@ -36,8 +36,4 @@ static char w[] = "friendly";
static char x_[] = "hi";
typedef int A[sizeof x_ + sizeof u];
-/*
-NOTE: THIS MUST WORK
-int x[] = {1,2,3}
-sizeof x
-*/
+static int a[3] = {1,2,3};