title: passing pointers to a strcpy function in c
body: <p>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</p>
  
  <pre><code># include&lt;stdio.h&gt;
  # include&lt;conio.h&gt;
  # include&lt;stdlib.h&gt;
  # include&lt;string.h&gt;
  int main() {
      char *rt = "dart";
      char *ft = "gart";
      strcpy(rt, ft);
      printf("%s", rt);
      system("PAUSE");
  }
  </code></pre>