title: How to return/save values with void function in C?
body: <p>I want to save value with void function. In C++ i did somewhat like this:</p>
  
  <pre><code>void func(int &amp; a);
  
  void func(int &amp; a)
  {
     int value;
     cin &gt;&gt; value;
     a = value;
  }
  
  int main()
  {
     int x;
     func(x);
     cout &lt;&lt; x;
     return 0;
  }
  </code></pre>
  
  <p>How would this algorithm look like in C language?</p>