Consider the following code fragment and the function body that uses a class Mike to make objects.
• In the main method
Mike a, b;
a.compute(b);
• The function body
Mike compute(Mike b) const
{
Mike value = Mike.makeValue(storedValue(), b.storedValue());
return value;
}
• At the point of the return statement in the function (marked in red), how many objects of Mike exist in memory?
O a. 1
Ob. 2
O c. 3
d. 4
e. 5
Yes, the initial a and b object, the b object that has been copied as a parameter into the function (notice there's no & on the parameter) and the
return value