Question: Assume a file has been opend with write mode with the file descriptor, fd . Then if we execute dup 2 ( fd , 2

Assume a file has been opend with write mode with the file descriptor, fd. Then if we execute dup2(fd,2) what will happen?"
printf() statements will be written in the file
errors associated standard error will be written to the file
none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!