title: How is char array stored in memory?
body: <p>I am confused with the memory address of a char array. Here are demo codes:</p>
  
  <pre><code>char input[100] = "12230 201 50";
  const char *s = input;
  //what is the difference between s and input?
  
  cout&lt;&lt;"s = "&lt;&lt;s&lt;&lt;endl;                    //output:12230 201 50
  cout&lt;&lt;"*s = "&lt;&lt;*s&lt;&lt;endl;                  //output: 1
  
  //here I intended to obtain the address for the first element
  cout&lt;&lt;"&amp;input[0] = "&lt;&lt;&amp;(input[0])&lt;&lt;endl;  //output:12230 201 50
  </code></pre>
  
  <p>Is the char array itself a pointer? Why &amp; operator does not give the memory address of char elements? How to get the addresses of individual entries? Thanks!</p>