Question: 2. What is the output displayed by the following code fragment? Show how did you get the answer. Assume the input file letter.txt contains the

2. What is the output displayed by the following code fragment? Show how did you get the answer. Assume the input file letter.txt contains the following statement: Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal. ifstream inFile; int ch; int count = 0; inFile.open( "letter.txt" ); if(inFile.fail()) { cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
