Puts function

Share it Please
Puts function is used to display a string on any output devices.it is also used to print string stored in variable. Let us see syntax:

Syntax:
  
puts(variable);

Example for puts function:

#include<stdio.h>
#include<conio.h>
main()
{
     char string[100];
     clrscr();
     printf("Enter String: ");
     gets(string);
     printf("\nYour String was: ");
     puts(string);
     getch();

}