I am trying to pass pointers to strcpy() function. But on running this code, I get no output and the program stops responding, even though I don't get any compile error. I know that strcpy() function takes the arguments as pointers, and here I am passing the pointers directly. So I want to know why the following code is not working properly. And also tell me how to modify the code and if possible using same concept, i.e. by passing pointers to strcpy() function
# include<stdio.h>
# include<conio.h>
# include<stdlib.h>
# include<string.h>
int main() {
char *rt = "dart";
char *ft = "gart";
strcpy(rt, ft);
printf("%s", rt);
system("PAUSE");
}