back

Answers to Function Overloading Lab

1.  Output:

    "I think I know this one!"

    100

    A

 

2.  These two have the same parameters.

     int function(void);

    char function(void);

    This one would overload correctly but the function name is different (note the s on the end).

    int functions(int);

 

3.  This is just one of a million answers to this question:

    void answer(int);

    void answer(bool);

    void answer(char, int);

    void answer();