home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
c
/
other
/
learn
/
parray.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
|
1988-10-07
|
294 b
|
18 lines
/* PARRAY.C: Demonstrate pointer to array. */
#include <stdio.h>
int i_array[] = { 25, 300, 2, 12 };
main()
{
int *ptr;
int count;
ptr = &i_array[0];
for( count = 0; count < 4 ; count++ )
{
printf( "array[%d] = %d\n", count, *ptr );
ptr++;
}
}