To close a file as indicated by the ifstream variable inFile, you use the statement…
To close a file as indicated by the ifstream variable inFile, you use the statement inFile.close();. To close a file as indicated by the ofstream variable outFile, you use the statement outFile.close();
Mark the following statements as true or false.
a. The extraction operator >> skips all leading whitespace characters when searching for the next data in the input stream.
b. In the statement cin >> x;, x must be a variable.
c. The statement cin >> x >> y; requires the input values for x and y to appear on the same line.
d. The statement cin >> num; is equivalent to the statement num >> cin;.
e. You generate the newline character by pressing the Enter (return) key on the keyboard.
f. The function ignore is used to skip certain input in a line.