home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoftware Monthly 19…2 Programming Power Tools
/
MASO9512.ISO
/
cpptutor
/
cpptutor.arj
/
EXAMPLES
/
EX0408.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-09-13
|
299 b
|
14 lines
// \EXAMPLES\ex0408.cpp
#include <iostream.h>
void print_array(int* array, int i) {
cout << "Here is the first element: " << *array << endl;
cout << "Here is element "<< i << ": " << array[i] << endl;
}
void main() {
int array[] = {1, 2, 3, 4};
print_array(array, 2);
}