home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
qc
/
qc25
/
pstring.c
< 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
|
1989-11-15
|
262 b
|
15 lines
/* PSTRING.C: Demonstrate pointer to a string. */
#include <stdio.h>
main()
{
int count;
static char name[] = "john";
char *ptr = name;
for( count = 0; count < 4; count++ )
{
printf( "name[%d]: %c\n", count, *ptr++ );
}
}