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
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
Which method defines a constant?
a. define() b. isset() c. $_POST d. NEW_TIME
____ 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
The ________ command helps you locate specific records
Fill in the blank(s) with correct word