Saturday, 6 February 2016

What do the following function prototypes tell you about the functions? int froop(double t); void rattle(int n); int prune(void);

Leave a Comment
The function froop() expects to be called with one argument, which will be type double, and that the function will return a type int value. For instance, it could be used as follows:

int gval = froop(3.14159);

The function rattle() has no return value and expects an int argument. For instance, it could be used as follows:

rattle(37);

The function prune() returns an int and expects to be used without an argument.
For instance, it could be used as follows:

int residue = prune();
 
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: