int main ( )
{
char C[] = "Hello World";
write(0,C,sizeof(C));
return 0;
}
In the above program, I am writing to File descriptor ZERO which I suppose by default is STDIN.. Then why I am I getting output at STDOUT?
shadyabhi@shadyabhi-desktop:~$ ./a.out
Hello Worldshadyabhi@shadyabhi-desktop:~$