Which of the following opens the payroll.txt file for output? The file is associated with the outPayroll

Question:

Which of the following opens the payroll.txt file for output? The file is associated with the outPayroll object. 

a. outPayroll.open("payroll.txt"); 

b. outPayroll.open("payroll.txt", ios::out); 

c. outPayroll.open("payroll.txt", ios::output); 

d. Both a and b

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: