Escape sequence \r moves cursor to the beginning of the line - C Language Basics

C examples for Language Basics:printf

Description

Escape sequence \r moves cursor to the beginning of the line

Demo Code

#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;
}

Result


Related Tutorials