What is the output of this code, given the following function definition?

int x =5, y = 2;
y = mixUp (x, y);
cout << x;

int mixUp (int &p, int t) //function definition
{
p = p * t;
return p + 1;
}

a) 5
b) 6
c) 10
d) 11


c) 10

Computer Science & Information Technology

You might also like to view...

MC If two or more records have the duplicate primary-key field values, this vio-lates the_________ .

a) Rule of Data Integrity. b) Rule of Database Integrity. c) Rule of Entry Integrity. d) None of the above.

Computer Science & Information Technology

Which of the following best describes the array name n in the declaration int n[10];?

a. n is a nonconstant pointer to nonconstant data. b. n is a nonconstant pointer to constant data. c. n is a constant pointer to nonconstant data. d. n is a constant pointer to constant data.

Computer Science & Information Technology

Write in C++ code:

age is outside the range p to q

Computer Science & Information Technology

You can create a comment within a comment

Indicate whether the statement is true or false

Computer Science & Information Technology