Question: Write a function double replace_if_greater(double* p, double x) that replaces the value to which p points with x if x is greater. Return the old
Write a function double replace_if_greater(double* p, double x) that replaces the value to which p points with x if x is greater. Return the old value to which p pointed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
