use gets and puts in your string .
#include<stdio.h>
#include<conio.h>
main()
{
char a[20],target[20];
printf("enter yr string :\n");
gets(a);
puts(a);
}
output :
enter yr string :
rahul chaurasiya
rahul chaurasiya
This blog is for basic programming tutorial. Mostly programs of c and c++ programming are available here .
Comments
Post a Comment