title: console outputs smiley face
body: <p>I have this code:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  
  typedef struct{
      int s1;
      int s2;
      char c1;
      char* arr;
  }inner_struc;
  
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      inner_struc myinner_struct;
      myinner_struct.s1 = myinner_struct.s2 = 3;
      myinner_struct.c1 = 'D';
      char arr[3] = {1,2,3};
      myinner_struct.arr = arr;
  
      std::cout &lt;&lt; "first array element: " &lt;&lt; myinner_struct.arr[1] &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>
  
  <p>I wonder why am I getting a smiley face instead of the first array element! what am I doing wrong here? It compiles and runs fine however the output is</p>
  
  <blockquote>
    <p>first array element: "smiley face"</p>
  </blockquote>
  
  <p>What does this means?
  I am using Visual Studio 2010. Thanks </p>