Global Değişkenlerin Faaliyet Alanı sayfa 26

This commit is contained in:
Mert Gör
2024-07-17 01:46:02 +03:00
parent 082312c4ac
commit 9e195402ee
6 changed files with 105 additions and 0 deletions

20
c-basic/local_variable.c Normal file
View File

@@ -0,0 +1,20 @@
#include <stdio.h>
int main()
{
int a;
{
int b;
b = 20;
a = 10;
printf("a = %d, b = %d\n", a, b); // geçerli
}
printf("a = %d\n", a); // geçerli
// printf("b = %d\n", b); // geçersiz error !!
return 0;
}