Hi there,
On executing the above code I'm getting the error "segmentation fault". Is it possible to manipulate a string variable which already contains a data?
#include<stdio.h>
int main()
{
char *str="Hello";
char * str1 ="World";
strcpy(str,str1);
printf("%s",str);
}