The function used to display
the string value on the screen.
Syntax:
Puts(parameter/value/variable);
Example:
#include<stdio.h>
#include<conio.h>
void main ()
{
char name[];
printf("enter your
name:");
gets(name);
printf("your name
is:");
puts(name);
getch();
}
Output:
Enter your name:somebody
Your
name is:somebody
No comments:
Post a Comment