home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Piper's Pit BBS/FTP: ibm 0000 - 0009
/
ibm0000-0009
/
ibm0003.tar
/
ibm0003
/
LCNOW2.ZIP
/
EXAMPLES
/
STRINGS.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
|
1988-06-25
|
358 b
|
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;
}