Answers:
/r will move the cursor to the beginning of the line.
printf("Hello /r World");
Output of above code is:
World
The output is actually all the characters you have given, but you can only see "World" because the "Hello" has been overwritten. Carriage return makes the cursor come back to the same position in the line.
Login to add comment