scope example

This commit is contained in:
Mert Gör 🇹🇷 2024-10-30 08:58:17 +03:00
parent cfd60f5994
commit b8d2d91cd6
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2024-10-30 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/scope.c (foo): same variable different scopes
* c-basic/C.pdf: page 25,end of the page
* c-basic/local_vs_global.c (main): local variable and global variable

16
c-basic/scope.c Normal file
View File

@ -0,0 +1,16 @@
#include <stdio.h>
void foo()
{
int a;
{
int a;
}
}
int main()
{
int a;
return 0;
}