local scope example

This commit is contained in:
Mert Gör
2024-02-19 04:55:48 +03:00
parent 79cea78298
commit bf599e9fc2
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include <stdio.h>
int a;
void foo(){
a = 10;
}
int main(){
a = 20;
printf("%d\n", a);
foo();
printf("%d\n", a);
return 0;
}