Monday, 17 September 2012

puts function


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