c-first-steps

a C playground
Index Commits Files Refs README
commit 258e2938857ca97bc1aac380901c4888aa0fc20a
parent 7e0d89725046ab2df5d7f11461078dcad54ba3de
Author: Martin J. Klöckner <martin.cachari@gmail.com>
Date:   Tue,  1 Dec 2020 23:37:21 -0300

Added guia04/ex02.c

Diffstat:
A95.11/guia04/ex02.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/95.11/guia04/ex02.c b/95.11/guia04/ex02.c
@@ -0,0 +1,15 @@
+#include <stdio.h>
+
+#define MAX 10
+
+int main ( void ) {
+
+    int x, array[MAX];
+    array[4] = 1;
+
+    x = array[4];
+
+    printf("%d\n", x);
+
+    return 0;
+}