0
What \r(escape sequence) represents?
I want to know the functionality of \r.
1 Réponse
+ 3
\r is for carriage return; it moves the cursor to the beginning of the existing line, and rewrites from there. The term is motivated from typewriters.
https://en.wikipedia.org/wiki/Carriage_return
P.S. It may not work perfectly on Sololearn. Here it appears to work the same way as \n.