SyntaxFix
Write A Post
Hire A Developer
Questions
What one program writes to stdout can be read by another via stdin. So simply, using c, write prog1 to print something using printf() and prog2 to read something using scanf(). Then just run
prog1
printf()
prog2
scanf()
./prog1 | ./prog2