title: StrCat is not working with Single Char String - C
body: <p>I'm using the code below to add some "0" chars into my string, but it seems there is a problem and the program will crash. Everything seems logic but I do not know where is the problem?</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  int main()
  {
      char *Ten; int i=0; Ten = malloc(12);
      Ten="1";
      for (i=0;i&lt;10;i++)
          strcat(Ten,"0");
  
      printf("%s",Ten);
      return 0;
  }
  </code></pre>