title: integer arrays and character arrays with pointers
body: <p>I would really like some help regarding pointers in c++. Take a look at the following code:</p>
  
  <pre><code>int array[3]={4,7,2};
  int * a;
  
  a = array;
  
  char Carray[3]={'p','k','\0'};
  char * c;
  
  c = Carray;
  
  cout &lt;&lt; a &lt;&lt; "\n";
  cout &lt;&lt; c &lt;&lt; "\n";
  </code></pre>
  
  <p>Printing a gives back the address of the first element of the array i.e 4 as expected.</p>
  
  <p>But printing c should have given the address of the first element of Carray i.e p but instead it gives the whole string i.e 'pk' in this case. and we havent used a value operator * here. </p>
  
  <p>It will be very kind if someone can explain this to me </p>