puts() function is used to write a line to the output screen. It means puts() function can print entire sentence with white spaces.
#include <stdio.h> #include <conio.h> void main() { char string[40]; clrscr(); printf("Enter your full name :: "); gets(string); printf("\n\nYou entered ") puts(string); getch(); }
OutPut
Enter your full name :: Suvidha Malaviya You entered Suvidha Malaviya
It’s Done. Keep It Up Guys…