Pointers to Functions
Another case of using a pointer to function is when a function is used as an argument, passed to another function (a sub-case of the last case)
Example:A definition of a function which is used as an argument:void string_manipulation(char s[], char (*chr_mnp)(char)){ int i; for (i=0; i<strlen(s);i++) s[i] = chr_mnp(s[i]); /* here “chr_mnp” is a given op. on a char*/} /* Use of that function: */ char str[10] = “aBcD”;...string_manipulation(str,tolower);