Vidyalelo
Computer Science · Q614

Linux

Engineering and GATE · Computer Science · question 614

Q614

dup2(1,0)

A.
closes the stdout and copies the stdin descriptor to stdout
B.
closes the stdin and copies the stdout descriptor to stdin
Answer
C.
will produce compilation error
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board