KodeGod.com

Write a program to accept a string and copy it into another string in C language

#include<stdio.h>
#include<conio.h>  
#include<string.h>
main()
{
	char *s1,*s2;
	clrscr();
	printf("Enter string 1 : ");
        scanf("%s",s1);
	strcpy(s2,s1);
	printf("\nCopied string is...%s",s2);
	getch();
}