Determine whether the following program segments contain errors. For each error, explain how to correct it. [Note: It's possible that no errors are present in the segment.]
a) template
int sum(int num1, int num2, int num3)
{
return num1 + num2 + num3;
}
b) void printResults(int x, int y)
{
cout ≪ "The sum is " ≪ x + y ≪ '\n';
return x + y;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.