home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ for Dummies (3rd Edition)
/
C_FD.iso
/
CHAP02
/
CHAP02_2.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1996-09-02
|
289 b
|
16 lines
// Chap02_2.c
void fn(int i)
{
i = 10; /*this is legal and the...*/
/*...value is now 10 in fn()*/
}
int main()
{
int i = 0;
fn(i); /*only the value 0 is passed to fn()*/
return 0; /*i is still 0 upon returning*/
}