home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
98.img
/
LCNOW2.ZIP
/
EXAMPLES
/
STRINGS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-06-25
|
358b
|
18 lines
/*
* S T R I N G S
*
* Show how to print character strings that
* involve various kinds of substitutions.
*/
int main(void)
{
static char word1[] = { "basket" };
static char word2[] = { 'b', 'a', 'l', 'l', '\0' };
printf("The goal in %s%s is to put the %s in the %s.\n",
word1, word2, word2, word1);
return 0;
}