title: How to pass arguments to processes created by fork()
body: <p>I want to create copies of a process using <strong>fork()</strong> in C.
  I cant figure out how to pass arguments to the copies of my process.
  For example,I want to pass an integer to the process copies.</p>
  
  <p>Or I what to do, if I have a loop in which I call fork() and want to pass a unique value to processes (e.g. 0...N)</p>
  
  <pre><code>for (int i = 0; i &lt; 4; ++i) {
      fork();
      // pass a unique value to new processes.
  }
  </code></pre>