1
0

strings1.c 369 B

123456789101112131415161718
  1. // strings1.c
  2. #include <stdio.h>
  3. #define MSG "I am a symbolic string constant."
  4. #define MAXLENGTH 81
  5. int main(void)
  6. {
  7. char words[MAXLENGTH] = "I am a string in an array.";
  8. const char * pt1 = "Something is pointing at me.";
  9. puts("Here are some strings:");
  10. puts(MSG);
  11. puts(words);
  12. puts(pt1);
  13. words[8] = 'p';
  14. puts(words);
  15. return 0;
  16. }