Which of the following reads a number from an input file named managers.txt and stores the number

Question:

Which of the following reads a number from an input file named managers.txt and stores the number in the salary variable? The file is associated with the inFile object. 

a. managers.dat << salary; 

b. ifstream << salary; 

c. inFile << salary; 

d. None of the above

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

Step by Step Answer:

Question Posted: