home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 98.img / LCNOW2.ZIP / EXAMPLES / STRINGS.C < prev    next >
C/C++ Source or Header  |  1988-06-25  |  358b  |  18 lines

  1. /*
  2.  * S T R I N G S
  3.  *
  4.  * Show how to print character strings that
  5.  * involve various kinds of substitutions.
  6.  */
  7.  
  8. int main(void)
  9. {
  10.     static char word1[] = { "basket" };
  11.     static char word2[] = { 'b', 'a', 'l', 'l', '\0' };
  12.  
  13.     printf("The goal in %s%s is to put the %s in the %s.\n",
  14.         word1, word2, word2, word1);
  15.         
  16.         return 0;
  17. }
  18.