Friday, 3 March 2017

New line character '\n'


#include<stdio.h>

int main()
{

printf("Hello there buddyy?");
printf("are u confused with the \n new line character '\n' ");    //observe that whenever the compiler encounter '\n cursor jumps to the next line'

printf("\n");
printf("with using  new line character at the end of the line \n");
printf("\n");

printf("Hello there buddyy? \n");                              //new line character takes the cursor to the new line
printf("observer the difference with the new line line character introduced in the above line!!! isnt it amazing ");

return 0;
}

No comments:

Post a Comment