Chapter18ex1.c 196 B

12345678910111213141516
  1. #include <stdio.h>
  2. #include <string.h>
  3. main(void)
  4. {
  5. int i;
  6. char msg[] = "C is fun";
  7. for (i = 0; i < strlen(msg); i++)
  8. {
  9. putchar(msg[i]);
  10. }
  11. putchar('\n');
  12. return(0);
  13. }