From 102341d7ae8793c29d44fa416d3b5b797d1eca3e Mon Sep 17 00:00:00 2001 From: Clay Smith Date: Tue, 1 Aug 2023 01:09:09 -0500 Subject: First commit --- understanding_scope_1.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 understanding_scope_1.c (limited to 'understanding_scope_1.c') 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 +#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); + } + } +} -- cgit v1.2.1