Anser by Balagopal Komarath
These are characters in the ASCII character set and are not specific to C.
A newline character ‘\n’ moves the cursor to the beginning of the next line.
A carriage return ‘\r’ moves the cursor to the beginning of the current line.
Try executing the following program.
printf("This is a line.\r");
} It prints "overwrite.line." on a line by itself on the console.