Play and learn 300 000+ tabs online

Wednesday, June 2, 2010

Fork Program in C

#include
int main(){
int i=10;
if(fork() == 0){
i=i+5;
printf("Child---%d\n",i);} else {i=i-5;
printf("Parent---%d\n",i);
}}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.