title: Can a function return two values?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3829167/returning-multiple-values-from-a-function">returning multiple values from a function</a>  </p>
  </blockquote>
  
  
  
  <p>I have a function which has to return two values </p>
  
  <pre><code>                    return(&amp;ptr-&gt;keys[pos].value)
                      return Duplicate;
  </code></pre>
  
  <p>Here &amp;ptr->keys[pos].value will give the address and Duplicate is a enum value set to 2... How to return these two values to another function, insert_front which is a linked list this  &amp;ptr->keys[pos].value is used as the first address for linked list.
  What should be the prototype of the calling function I should write?</p>