title: Char String Assignment
body: <p>I am working on Microsoft Visual Studio environment. I came across a strange behavior</p>
  
  <pre><code> char *src ="123";
   char *des ="abc";
   printf("\nThe src string is %c", src[0]);
   printf("\tThe dest string is %c",dest[0]);
  
   des[0] = src[0];
  
   printf("\nThe src string is %c", src[0]);
   printf("\tThe dest string is %c",dest[0]);
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>1 a
  1 a   
  </code></pre>
  
  <p>That means the <code>des[0]</code> is not being initialized. As src is pointing to the first element of the string. I guess by rules this should work.</p>