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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!