Rewrite the following program using pass by reference. Also if there is a mistake say where is it and explain it.
Note that in the function "decrease", you are accepting two pointers to constant integers. Note as well that (*t) is being set to a NEW value as (*m) - 1. This cannot be done because *t is constant. To fix it, change the decrease function to: void decrease(int* m, int* t).
Much luck!
Hello Could you help me with the following C++ problem?
Rewrite the following program using pass by reference. Also if there is a mistake say where is it and explain it.