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)
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017
- DHT12 Interfacing with Raspberry Pi using Pi4J - June 19, 2017
- Send data using MQTT from Raspberry Pi with JAVA - June 12, 2017