SyntaxFix
Write A Post
Hire A Developer
Questions
\r is used to point to the start of a line and can replace the text from there, e.g.
\r
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
Produces this output:
hai
\n is for new line.
\n