Explain the effect of the second declaration in each of the following sets of declarations. Indicate which, if any, are legal.
(a)
int calc(int, int);
int calc(const int, const int);
(b)
int get();
double get();
(c)
int *reset(int *);
double *reset(double *);
(a) declares the same function twice, legally. (b)'s second definition will be in error as only the return types differ. (c) will acceptably declare both functions, legally.