summaryrefslogtreecommitdiff
path: root/sizeof2d.c
diff options
context:
space:
mode:
Diffstat (limited to 'sizeof2d.c')
-rw-r--r--sizeof2d.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sizeof2d.c b/sizeof2d.c
new file mode 100644
index 0000000..29bd530
--- /dev/null
+++ b/sizeof2d.c
@@ -0,0 +1,11 @@
+#include <u.h>
+#include <libc.h>
+
+void
+main()
+{
+ char m[10][5];
+
+ print("%d\n", sizeof(m));
+ exits(nil);
+}