Challenge: An Array of Function Pointers
Explore how to create and use an array of function pointers to invoke multiple functions on integers. Learn to implement functions that modify values by doubling, tripling, and quadrupling them through pointer manipulation.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you have to implement these functions:
void callFunctions(int num, int arr[]);
void dbl(int *n);
void tple(int *n);
void qdpl(int *n);
-
The
dblfunction receives the address of an int, doubles the int, and returns nothing. ...