#include<stdio.h>
#include<unistd.h>
int main()
{
  int return_value;
  printf("forking process");
  fork();
printf("hello\n");
return 0;

 }

in the above program the output is

forking processhello
forking processhello

but in the below prog


  include<stdio.h>
#include<unistd.h>
int main()
{
  int return_value;
  printf("forking process\n");
  fork();
printf("hello\n");
return 0;

 }
the output is
forking process
hello
hello

why its so ??

-- 
by $THANU$

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to