home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoftware Monthly 19…2 Programming Power Tools
/
MASO9512.ISO
/
cpptutor
/
cpptutor.arj
/
EXAMPLES
/
EX0411.CPP
< prev
next >
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
|
1993-10-27
|
386 b
|
19 lines
// \EXAMPLES\EX0411.CPP
#include <iostream.h>
void f(int i) {
i++; // increment i
cout << "Here is i in f(): " << i // print value of i
<< endl;
}
void main() {
int i = 0;
f(i); // pass i by value to f()
cout << "Here is i after call to f(): " << i // print i
<< endl;
}