title: how to use a pointer to point to another pointer in c++
body: <p>suppose that I have a pointer called P with float type which is points to some values.
  I want to creat another pointer called Ptr to go through where the P is pointing to and return the last element. How Can I do that?</p>
  
  <p>this is what I tried until now...</p>
  
  <pre><code>float *p;
  float *ptr;
  for(int i=0; i&lt; sizeof p; i++){
      ptr++;
     return &amp;ptr;
  }
  </code></pre>
  
  <p>is that correct?
  sorry that my question is basic.</p>