Printing long strings with \ - C Language Basics

C examples for Language Basics:printf

Description

Printing long strings with \

Demo Code

#include <stdio.h>
int main(void)
{
    printf("line 1 ");
    printf("line 2.\n");
    printf("Here's another way to print a \
           long string.\n");/*from  ww w.  ja  va2 s. co  m*/
    
    printf("Here's the newest way to print a "
           "long string.\n");      /* ANSI C */
    
    return 0;
}

Result


Related Tutorials