Hello all,
So here is my problem:
I have 2 functions that one uses the other's calculations and result:
int functionA(int a, int b) {
int x = a+b;
return x;
}
int functionB(int a, int b, int c) {
int xx = x(a,b);
int f = xx * c;
return f;
}
I have reached a point in a program I am trying to write, where I need functions that take too many parameters and I was thinking whether or not there is a better way to do it, like calling the function A or its result directly without having to insert it parameters as parameters to funciton B and so on...
Thank you all.