0

What \r(escape sequence) represents?

I want to know the functionality of \r.

2nd Nov 2018, 5:16 AM
manikanta
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.
2nd Nov 2018, 5:27 AM
Kishalaya Saha
Kishalaya Saha - avatar