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

int a = 4, b = 10;
a = aFunction (a, b);
cout << a << “ “ << b;

int aFunction (int j, int &k) // function definition
{
while (j < k)
{
j++;
k -= 2;
}
return j;
}

a) 4 10
b) 4 6
c) 6 6
d) 6 10


c) 6 6

Computer Science & Information Technology

You might also like to view...

Given the following code:

enum car (toyota, ford, buick, nissan); car mine = toyota; what is the value of int (mine + 2)? a) 2 b) 3 c) buick d) the code is not syntactically correct

Computer Science & Information Technology

Which method defines a constant?

a. define() b. isset() c. $_POST d. NEW_TIME

Computer Science & Information Technology

____ is a very popular cross-platform format from Apple used for both Web and DVD video.

A. QuickTime B. RealMedia C. Windows Media D. MP3

Computer Science & Information Technology

The ________ command helps you locate specific records

Fill in the blank(s) with correct word

Computer Science & Information Technology