summaryrefslogtreecommitdiff
path: root/understanding_scope_1.c
diff options
context:
space:
mode:
authorClay Smith <claysmith158@gmail.com>2023-08-01 01:09:09 -0500
committerClay Smith <claysmith158@gmail.com>2023-08-01 01:09:09 -0500
commit102341d7ae8793c29d44fa416d3b5b797d1eca3e (patch)
tree6df9a5d5ef978dc6809a7d71d50de6e359dae2e7 /understanding_scope_1.c
First commitHEADmain
Diffstat (limited to 'understanding_scope_1.c')
-rw-r--r--understanding_scope_1.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/understanding_scope_1.c b/understanding_scope_1.c
new file mode 100644
index 0000000..e22cc38
--- /dev/null
+++ b/understanding_scope_1.c
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include "tutorial6.h"
+
+//int a = 3;
+//extern int a;
+
+
+
+void func1(void)
+{
+ extern int a;
+ a = 4;
+ {
+ extern int a;
+ a = 99;
+ {
+ extern int a;
+ printf("a is: %d\n",a);
+ }
+ }
+}