What is the side effect in the following function?
int ExamPrep (int param1, int& param2)
{
if (param2 = param1)
return param2;
else if (param2 > param1)
return param1;
else
return param1 * param2;
}
A side effect is defined as the result of an operator, expression, statement, or function that persists even after the operator, expression, statement, or function has finished being evaluated. I don't really understand how that is presented in the above code though....