Initial commit
This commit is contained in:
15
kapitel9/icke-fungerande-scope.c
Normal file
15
kapitel9/icke-fungerande-scope.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
extern int x;
|
||||
extern int y;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
/* Kommer inte att fungera eftersom
|
||||
y är static i filen
|
||||
fungerande-scope-fil2.c
|
||||
*/
|
||||
printf("x = %d\n", x);
|
||||
printf("y = %d\n", y);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user