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...
A ________ is a search engine that searches other search engines
a.Boolean operator b.bot c.metasearch d.spider
Computer Science & Information Technology
A buffer _________ is a condition at an interface under which more input can be placed into a buffer or data holding area than the capacity allocated, overwriting other information.
A. overflow B. overrun C. overwrite D. all the above
Computer Science & Information Technology