Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 296 Bytes

6.39.md

File metadata and controls

15 lines (9 loc) · 296 Bytes

(a)

int calc(int, int);
int calc(const int, const int);  // Same with first line, top-level `const` are ignored

(b)

int get();
double get();  // Error, differ only on return types

(c)

int *reset(int *);
double *reset(double *);  // OK, define an overloaded function