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"

No comments:

Post a Comment