Output of Following program is : hai
hai
I didn\'t get how the \\r carriage return works in this program and in real can any one help me out
\\r
Program prints ab, goes back one character and prints si overwriting the b resulting asi. Carriage return returns the caret to the first column of the current line. That means the ha will be printed over as and the result is hai
ab
si
b
asi
ha
as