summaryrefslogtreecommitdiff
path: root/c,cc/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'c,cc/struct.c')
-rw-r--r--c,cc/struct.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/c,cc/struct.c b/c,cc/struct.c
new file mode 100644
index 0000000..4111526
--- /dev/null
+++ b/c,cc/struct.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+
+
+struct bla {
+ int a, b;
+};
+
+int main(void)
+{
+ struct bla test, *ptest;
+ ptest = &test;
+
+ ptest->a = 3;
+ ptest->b = 5;
+
+ printf("%d-%d\n", ptest->a, ptest->b);
+
+ return 0;
+}
+