Wednesday, August 28, 2019

"\r" carriage return in c programming language

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Hello \rworld!\n");
    return 0;
}


output :
world

because of \r in the printf statement....so after \r the statements  will be executed

No comments:

Post a Comment

python class topic video