C examples for Language Basics:printf
Escape sequence \r moves cursor to the beginning of the line
#include <stdio.h> int main()/*from w w w. j av a 2 s . c o m*/ { printf("This escape sequence moves the cursor "); printf("to the beginning of this line\r"); return 0; }