title: How do you pass the result from one function into another function?
body: <p>Please consider this code example:</p>
  
  <pre><code>int func1(int,int); // function 1 prototype
  int func2(int); // function 2 prototype
  </code></pre>
  
  <p>I am trying to send the output of function-1 as the input to function-2, but have been unsuccessful till now.</p>
  
  <p>If someone could please explain the same with an example, that would be great.
  Also, is the same possible with respect to Pass-by value and Pass-by-reference?</p>