title: How to print address of all the dymanically allocated bytes
body: <p>First of all i am not sure whether my question is correct.</p>
  
  <p>Here's the question.</p>
  
  <pre><code>char* ch = new char[20]
  </code></pre>
  
  <p>Now i want to know the address of each of the 20 bytes allocated.</p>
  
  <p>I want to do something like</p>
  
  <pre><code>for(int i=0;i&lt;20;i++)
      cout&lt;&lt;ch++;
  </code></pre>
  
  <p>I am getting blank characters on doing this. Isn't this the correct way to do?
  Can't i print address of all 20 bytes?</p>
  
  <p>My aim :- I will allocate initially 20 bytes of memory for character type. Now i want to write one character at a time in each memory location. How to do this?</p>