Students Mela
ad exchange
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.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.