I have the following questions on user defined function:
Question 1. Can I put a if statement within the function as I want to combine two functions into one ?
Question 2. Can I use the same variable (a and b) in two different functions, does it confuse the program . In the main program we have to use different
int Function1 (int a, int b)
if (a==x1 && b==y1) c=3;
if (a= x2 && b=y2 ) c=4;
int Function2 (int a)
int Function3 (int a)