Showing posts with label how to print \n and "\n" in C. Show all posts
Showing posts with label how to print \n and "\n" in C. Show all posts

Thursday, 24 January 2013

C program to print \n and "\n"

C program to print  \n 


#include<stdio.h>
#include<conio.h>
void main()
    {
        printf("\\n");
         getch();
    }

Output :     \n


C program to print  "\n" 


#include<stdio.h>
#include<conio.h>
void main()
    {
        printf("\%c\\n%c",(char)34,(char)34);
         getch();
    }

Output :     "\n"