#include <stdio.h>

int main() {
  char word[] = "the";
  printf("%s\n", word);
  return 0;
}

this is the c code to save the string "the" in a character array "word", print out the character array "word" with a new line, and to exit with an exit code of 0. notice how it does not contain the word "the" other than in the string.

comments (single view)

you should null terminate that string

View all comments