summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-05 19:22:47 -0500
committerpommicket <pommicket@gmail.com>2022-02-05 19:22:47 -0500
commit41f122f01e3017df1611fb556b7b236216373e51 (patch)
treed545cbbffe6c42d70af4b8a79f18b7f418ca65ca /05/main.c
parentebe96b9e856f907dac7a89cf13c900c94fb8e1e1 (diff)
braced initializers in local declarations
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/05/main.c b/05/main.c
index 68b5f6e..3386be0 100644
--- a/05/main.c
+++ b/05/main.c
@@ -15,7 +15,12 @@ int h(void) {
int y, r[3], s;
char d, e[5], f, g, *p;
int z = 3, R=12+459834-g;
- return g;
+ int x[] = {1,2,3,4,5};
+ struct {
+ char a,b;
+ } P[] = {1,2,3,4,5};
+ static int marker = 0x12345678;
+ return 5;
}
/* typedef int AA[sizeof x]; */