summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-01 22:53:57 -0500
committerpommicket <pommicket@gmail.com>2022-02-01 22:53:57 -0500
commit22859ac40a9cedb4b7b7fcf6724548c625c35956 (patch)
treec003ebe966f01a11326082d31725aa5c9c2d8981 /05/main.c
parent44e11303beca15198a2021024f32e1e8c8cf62ab (diff)
start string initializers
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/05/main.c b/05/main.c
index 1c5fb4f..1f07113 100644
--- a/05/main.c
+++ b/05/main.c
@@ -27,20 +27,9 @@
/* typedef int x[sizeof(A)+sizeof"hello"]; */
/* typedef int y[sizeof(struct B)]; */
-static unsigned int x;
-static unsigned int y;
-static unsigned int z[1000];
-static unsigned int w;
-
-typedef struct {
- int x;
-} Test;
-
-int a = -138;
-double f = 0;
-void *p = 0;
-int j = 3+7<<5, k = 123;
-
+static unsigned int x=55;
+static char *s = "hello";
+static char *t = "goodbye";
/*
NOTE: THIS MUST WORK
int x[] = {1,2,3}