#include <iostream>

using namespace std;

int function(int a,int b)
{
return a + b;
}

bool function2(int a,int b)
{
return a < b;
}

void function3(int c, int(*cmp)(int a,int b) )
{
bool (*compare)(int,int) = &function2;

if( (*compare)(c,(*cmp)(a,b)))
{
cout << " this number is way bigger then the two " <<endl;
}else{
cout << " this number is lower " <<endl;
}
}

int main(int argc,char *argv[])
{
int (*foo)(int,int) = &function;

int a = 5, b = 10;
int sum = (*foo)(a,b);

cout << " the sum of two values: " << sum <<endl;

bool (*foo2)(int,int) = &function2;

if((*foo2)(a,b))
{
cout << " this is the power of c " <<endl;
}else {
cout << " this is not the power of c " <<endl;
}

system("pause");
return EXIT_SUCCESS;
}