Overloaded fxns.
void afunc(int);
void afunc(double);
afunc(0);
My book says the mathching (to check which fxn to use), is not ambiguous.
Is it really not?
Overloaded fxns.
void afunc(int);
void afunc(double);
afunc(0);
My book says the mathching (to check which fxn to use), is not ambiguous.
Is it really not?
afunc(0) would call the int version, whole numbers are assumed to be ints unless they have a modifier after them like 0f. Also, please call it a function, the extra typing isn't much and it took me a minute to understand what you meant. Another thing is your spelling, if you have a hard time with English spelling use a browser that has a built in/plugin spell check.
Your help is appreciated
Plugin teached me english too! (LOL)