Suppose we want to write a program to print the lines (from The Gitanjali by Rabindranath Tagore):
Where the mind is without fear
And the head is held high
Our initial attempt might be:
#include <stdio.h>
main() {printf("Where the mind is without fear");printf("And the head is held high");
}
However, when run, this program would print:
Where the mind is without fearAnd the head is held high
Note that the two strings are joined together (we say the strings are concatenated). This happens because printf does not place output on a new line, unless this is specified explicitly. Put another way, printf does not automatically supply a newline character after printing its argument(s). A newline character would cause subsequent output to begin at the left margin of the next line.
In the example, a newline character is not supplied after fear is printed so that And the head... is printed on the same line as fear and immediately after it.