// Soln6_1.cpp #include #include using std::cin; using std::cout; using std::endl; int ascVal(int i, const char* p) { // Output the ASCII value of the character if (!p || i > strlen(p)) return -1; else return p[i]; } int main() { char* str = "a bunch of bananas"; int (*fp) (int, const char*); fp = ascVal; for(int n = 0 ; n