title: sizeof() function in C
body: <pre><code>main()
  {
  char a[] = "Visual C++";
  char *b = "Visual C++";
  printf("\n %d %d",sizeof(a),sizeof(b));
  printf("\n %d %d",sizeof(*a),sizeof(*b));
  }
  </code></pre>
  
  <p><code>sizeof(a)</code> gives me output: <code>11</code>  ( that is length of the string)  </p>
  
  <p>Why is it so ?<br>
  Why isn't the output <code>sizeof(a)</code>=<code>4</code> since when I try to print <code>a</code> it gives me an address value and hence an integer?  </p>