Question: This may be used to write information to a file. Group of answer choices stream insertion operator Not sure None of these pen object cout

This may be used to write information to a file.

Group of answer choices

stream insertion operator

Not sure

None of these

pen object

cout object

output object

.

Given two int variables with initial values, we want to exchange their contents by calling a function which has been declared and defined, as follows:

int num1 = 10;

int num2 = 20;

swapVars(num1, num2);

Which is not a proper declaration of the function?

Group of answer choices

None of these

void swapVars(int &var1, int &var2);

void swapVars(int& var1, int& var2);

void swapVars(int var1, int var2);

Which cout statement correctly output three integers, num1, num2 and num3, each of which occupies 10 spaces?

Group of answer choices

None of these

cout

cout

cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!