adplus-dvertising
frame-decoration

Question

What does the following command line signify?
prog1|prog2

a.

It runs prog1 first, prog2 second

b.

It runs prog2 first, prog1 second

c.

It runs both the programs, pipes output of prog1 to input of prog2

d.

It runs both the programs, pipes output of prog2 to input of prog1

Posted under C Programming

Answer: (c).It runs both the programs, pipes output of prog1 to input of prog2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following command line signify? prog1|prog2