I want to know from the following question that whether the fork returns either 0 or 1, and what can be the internal function of fork()? [closed]?

Up vote -5 down vote favorite share g+ share fb share tw.

Consider the following code which uses fork(): int main() { int I = 0; if (fork()) { int j; for (j = 0;j.

1 try man 2 fork in a terminal or linux.die.net/man/2/fork – Alexandre C. Jan 28 '11 at 14:19 6 Please try and do a little research or study for your Homework before you post your questions here verbatim, showing absolutely no effort on your part. – KevenK Jan 28 '11 at 14:19 For a start, why not try actually compiling and running the code, to see what output you get?

– Paul R Jan 28 '11 at 14:24 1 We can't "understand what this code does" for you. – Eimantas Jan 28 '11 at 14:26 2 Try reading this answer to a similar (duplicate? ) question: stackoverflow.com/questions/985051/what-is-the-purpose-of-fork/… – Fred Larson Jan 28 '11 at 14:30.

I only do other people's homework in exchange for beer.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions