saving . . . saved C symbols has been deleted. C symbols has been hidden .
C symbols
Title
Question
What is a use of carriage return symbol in c ?

C-and-Cpp General None min None sec 29-02-20, 3:51 p.m. cset502

Answers:

/r will move the cursor to the beginning of the line.
printf("Hello /r World");
Output of above code is:
 World
29-02-20, 3:57 p.m. Himani.Parekh


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.
29-02-20, 4:35 p.m. bhaskar76


Log-in to answer to this question.