title: if (fork()) fork()
body: <p>I am studying for an OS quiz and I did not understand what output</p>
  
  <pre><code>if(fork())
      fork()
  </code></pre>
  
  <p>will produce.  Can someone explain?</p>
  
  <p>I didn't understand this line:</p>
  
  <pre><code>if(fork())
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>What I meant with "output" is how many processes will be there if this code was executed. </p>
  
  <p>Sorry I'm a bit dizzy after studying.</p>