#include int main() { FILE *fp; char buff[11]; int pid; fp=fopen("baby1","r"); pid=fork(); if(!pid) { printf("initial file handle :: %d\n",ftell(fp)); fread(buff,sizeof(buff),1,fp); buff[10]='\0'; printf("child read :: %s\n",buff); printf("child file handle :: %d\n",ftell(fp)); } else { wait((int *)0); printf("parent file handle :: %d\n",ftell(fp)); fread(buff,sizeof(buff),1,fp); buff[10]='\0'; printf("parent read :: %s\n",buff); printf("end file handle :: %d\n",ftell(fp)); } return 0; }