home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Teach Yourself C in 21 Days (6th Edition)
/
STYC216E.ISO
/
mac
/
Examples
/
Day12
/
Ex12_03.c
/
Ex12_03.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
|
231 b
|
19 lines
|
[
TEXT/LMAN
]
/* Using a global variable */
#include <stdio.h>
int var = 99;
void print_value(void);
int main( void )
{
print_value();
return 0;
}
void print_value(void)
{
printf( "The value is %d\n", var );
}