◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── /* 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] ); }