This function won't have much of an effect at all...it won't compile due to line 3. With a name like 'ExamPrep', I'm guessing it's a homework question...
All I'll say is: consider the modes in which the parameters are passed into the function...
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....