/* Passing a function as an argument in C++*/ #include using namespace std; void applyToArray(int A[], int B[], int f(int), int N) { for (int i=0; i