title: How do you iterate through a pointer?
body: <p>For example: </p>
  
  <pre><code>int *start;
  start = (int*)malloc(40);
  </code></pre>
  
  <p>If I wanted to iterate through all 40 bytes, how would I do so?
  I tried doing something like: </p>
  
  <pre><code>while(start != NULL){
       start++;
  }
  </code></pre>
  
  <p>but that iterates through a massive number of values, which is much greater than 40. Thus, how do you ensure that you iterate through all 40 bytes. </p>
  
  <p>Thanks for all the help. </p>