This is a simple program in C which uses the pipes to find the factorial of a number. Initially the Child get the number from the user and performs the factorial operation. After performing the factorial operation it writes and gets closed. Now the parent extracts the stored data and displays it in the console.
printf("Child: Writing to the PIpe n");
printf("Child: Enter the NUmber:");
printf("Parent: reaading from pipen");
printf("Parent : Read %dn",n1);
Got any doubts, drop them here and get Cleared !
Latest posts by Bikash Panda (see all)
- Firmata protocol with Raspberry Pi and Arduino - September 13, 2017
- IOT:Power outlet controlled from internet using WeMOS - August 9, 2017
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017