finished implementation of f(int/int*)  & f(int*/int)