scope example
This commit is contained in:
parent
cfd60f5994
commit
b8d2d91cd6
2 changed files with 18 additions and 0 deletions
|
@ -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
16
c-basic/scope.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <stdio.h>
|
||||
|
||||
void foo()
|
||||
{
|
||||
int a;
|
||||
{
|
||||
int a;
|
||||
}
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
int a;
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue