home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Teach Yourself C in 21 Days (6th Edition)
/
STYC216E.ISO
/
mac
/
Examples
/
Day14
/
puts.c
< prev
next >
Wrap
C/C++ Source or Header
|
2002-05-07
|
320b
|
21 lines
/* Demonstrates puts(). */
#include <stdio.h>
/* Declare and initialize an array of pointers. */
char *messages[5] = { "This", "is", "a", "short", "message." };
int main( void )
{
int x;
for (x=0; x<5; x++)
puts(messages[x]);
puts("And this is the end!");
return 0;
}