Commit 6614ae9b authored by Karine's avatar Karine

exercise_06_60, version4

parent 8cc7d6ba
......@@ -19,5 +19,7 @@ c)
d)
double cube( int );
int cube( int ) ; ///Compiler will give an error because it has no way to determine which version to call.
/// problem of overloading happens when functions have the same name, return type but not an argument type.
int cube( int ) ; ///Compiler will give an error because it has no way to determine which version to call
///(2nd prototype ambiguates the decleration of the 1st).
/// Need to use function overloading, which gives an opportunity to have functions having the same name
///but different argument types.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment