Output a string to stdout: how to use puts : Console Output String « Console « C / ANSI-C






Output a string to stdout: how to use puts



#include <stdio.h>

int main ()
{
  char string [] = "Hiiiiiiiiiiii!";
  puts (string);
}

           
       








Related examples in the same category

1.Displaying a string
2.Displaying a Quotation: the main function
3.prints Hello on standard output
4.Print the string in the reverse order
5.Read and output string
6.Output string to console
7.A simple example for printf