title: returning address form a function
body: <p>i have returned address form a function search(keys), like this </p>
  
  <pre><code>return ptr-&gt;keys[pos]
  </code></pre>
  
  <p>where ptr->keys[pos].value was used to access the member function of keys. is the above return statement correct? does this return the address  after it returns i have done </p>
  
  <pre><code>struct classifier keys,temp,*temp_ptr;
  temp = search(key);
  temp_ptr = &amp;temp;
  </code></pre>
  
  <p>and then i am accessing the member function value of keys as</p>
  
  <pre><code>temp-&gt;value
  </code></pre>