COP2000 Quiz 5 Chapter 5
Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!
What will the following code display? int number = 6; ++number; cout << number << endl;
7
This is a control structure that causes a statement or group of statements to repeat.
loop
To write data to a file, you define an object of this data type.
ofstream
Assuming outFile is a file stream object and number is a variable, which statement writes the contents of number to the file associated with outFile?
outFile << number;
This operator increments the value of its operand, then uses the value in context.
prefix increment