I'm guessing that the answer to this is "no," but I'm curious if there is any way to save writing some code by specifying a function to do the opposite of whatever another function does. For example the inverse of:
int FW (int in)
{
int out=2+in;
Return out
}
would be
int RV (int in)
{
int out=in-2;
Return out
}
However, would there be any way to call the inverse of FW()
if it was a more complicated function that still had one and only one input for each output?
c
tag .You will get much better answers there – Sniper May 16 '17 at 15:32