#include #include #include char* strcopy(char * str); int main() { char string[] = "String to be copied"; char * copy = strcopy(string); printf("Copied String is : %s\n",copy); return 0; } char* strcopy(char * str) { int length = strlen(str); char * copy = (char*)malloc(sizeof(char) * length); int i=0; for(i = 0;i