/************ * G Towell * Created: Sep 15, 2019 * Desc: A trivial program to illustrate that printf on strings is dependent on whatever is in the string when created. ***********/ #include int main(void) { char line[100]; line[0]='a'; line[1] = 'b'; printf("NOT null terminated |%s|\n", line); line[2] = '\0'; printf("IS null terminated |%s|\n", line); }