title: Behaviour of sizeof with string
body: <pre><code>‪#‎include‬ &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main()
  {
      printf("%d\n",sizeof("S\065AB"));
      printf("%d\n",sizeof("S65AB"));
      printf("%d\n",sizeof("S\065\0AB"));
      printf("%d\n",sizeof("S\06\05\0AB"));
      printf("%d\n",sizeof("S6\05AB"));
      printf("%d\n",sizeof("\0S65AB"));
      return 0;
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>5
  6
  6
  7
  6
  7
  </code></pre>
  
  <p><a href="http://ideone.com/kw23IV" rel="nofollow">http://ideone.com/kw23IV</a></p>
  
  <p>Can anyone explain this behaviour with character strings?</p>
  
  <p>Using GCC on Debian 7.4</p>