Question: Write a program in C that uses fork to create a child process. The child process reads input from the user, which will supply numbers
Write a program in C that uses fork to create a child process. The child process reads input from the user, which will supply numbers (one number at a time), and pass them to the parent process. The parent process will sum the numbers received from the child and print each result. When the parent receives the first number, it just prints that number. The parent and child process continues until they receive the character x.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
