Unformatted Input and output functions for string
void main()
{
char s[10];
printf("\nEnter a string: ");
gets(s); //unformatted input
printf("\nEntered string is: ");
puts(s); //unformatted output
}
Output:
Enter a string: How are you
Entered string is: How are you