
please wait
|
|
int sum(int a, int b);
int difference(int a, int b);
double division(int a, int b);
sum
and difference
are similar: they both return int and take parameters (int,int). division
is not, because it returns double, despite of having the same parameters (int,int)int *
is a pointer to int, then:int (*) (int, int)
is a pointer to function returning an int and taking 2 ints.double (*) (int, int)
is a pointer to function returning a double and taking 2 ints.int (*) (double, int)
is a pointer to function returning an int and taking 1 double, 1 int.void (*) (T&)
is a pointer to function returning nothing and taking a reference to T.inorder