1 votes 1 votes what is the output of the following program? int ret = fork(); if(ret == 0) { exec(some_binary); // this call fails printf("child "); }else { wait(); printf("parent\n"); } Runtime Error child parent child parent Operating System fork-system-call operating-system + – dd asked Jan 13, 2019 dd 818 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shobhit Joshi commented Jan 13, 2019 reply Follow Share $4$ ? 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Runtime Error wait() system call needs an argument "status" so its syntax should be like wait(&status). shaktisingh answered Jun 30, 2019 shaktisingh comment Share Follow See all 0 reply Please log in or register to add a comment.