Displaying strings with puts(). - C String

C examples for String:String Console Input

Description

Displaying strings with puts().

Demo Code

#include <stdio.h>


int main( void )
{
    char *message1 = "C\n";
    char *message2 = "is the";
    char *message3 = "best\n";
    char *message4 = "programming";
    char *message5 = "language.\n";

   puts(message1);/*  w w  w  .  j  a  v a 2  s  . com*/
   puts(message2);
   puts(message3);
   puts(message4);
   puts(message5);

   return 0;
}

Result


Related Tutorials