COP2000 Quiz 5 Chapter 5

अब 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


संबंधित स्टडी सेट्स

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