Which statement will open the /etc/passwd file for reading only?

Which statement will open the /etc/passwd file for reading only?

Which statement will open the /etc/passwd file for reading only?

A.
open(PASSFILE “+>/etc/passwd”);

B.
open(PASSFILE, “/etc/passwd”);

C.
open(PASSFILE “+</etc/passwd”);

D.
open(PASSFILE, “>/etc/passwd”);



Leave a Reply 1

Your email address will not be published. Required fields are marked *