Question: C++ Write two functions (return_half and make_half) that both take an int. return_half returns the int halved (5 -> 2). make_half doesn't return anything (void
C++ Write two functions (return_half and make_half) that both take an int. return_half returns the int halved (5 -> 2). make_half doesn't return anything (void function) but instead halves its argument. Hint: look into pointers and/or references.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
