Why is it possible to write() to STDIN?
<p>I have the following code:</p>

<pre><code>int main()
{
    char str[] = "Hello\n";
    write(0, str, 6);   // write() to STDIN
    return 0;
}
</code></pre>

<p>When I compiled and executed this program, <code>Hello</code> was printed in the terminal.</p>

<p>Why did it work? Did <code>write()</code> replace my <code>0</code> (STDIN) argument with <code>1</code> (STDOUT)?</p>