COP2000 Quiz 5 Chapter 5

Réussis tes devoirs et examens dès maintenant avec 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


Ensembles d'études connexes

Properties of Ionic and Covalent Compounds .

View Set

PrepU Chp 28: Assessment of Hematologic Function and Treatment Modalities

View Set

Mental Health Chapter 15 Post Test

View Set