home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Teach Yourself C in 21 Days (6th Edition)
/
STYC216E.ISO
/
mac
/
Examples
/
Day12
/
scope.c
/
scope.c
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
2002-05-04
|
245 b
|
22 lines
|
[
TEXT/LMAN
]
/* Illustrates variable scope. */
#include <stdio.h>
int x = 999;
void print_value(void);
int main( void )
{
printf("%d\n", x);
print_value();
return 0;
}
void print_value(void)
{
printf("%d\n", x);
}