Print or Display String Using puts()

Print or Display String Using puts()

puts() displays single or multiple characters of string including spaces to the standard Input device.

Declaration:

puts(variable_name);

Example Declaration:

char ch[10]="Example"; 

puts(ch);

Remarks:

puts() display string to the screen.

puts() Example Program:

#include<stdio.h>
#include<conio.h>

void main()
{
   char a[20];

   gets(a);
   puts(a);

   getch();
}

Sample Output:

thiyagaraaj.com

thiyagaraaj.com