home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
qc
/
qc25
/
pstring2.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
|
1989-11-15
|
266 b
|
12 lines
/* PSTRING2.C: Demonstrate strings and array notation. */
#include <stdio.h>
#include <string.h>
main()
{
int count;
char name[] = "john";
for( count = 0; count < strlen( name ); count++ )
printf( "name[%d]: %c\n", count, name[count] );
}