0

While overloading a function of two perametres,will it overload if I use two parametres of diffrent variable???

for example: void fnc(int a, float b); void fnc (float b, int a); will these functions overload???

28th Jan 2017, 3:07 AM
Sadatul islam Sadi
Sadatul islam Sadi - avatar
3 Answers
+ 7
Yes =^=
28th Jan 2017, 4:10 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
"Overloading is possible provided the parameter list is different, including order." Source: http://stackoverflow.com/a/25840345 So yes, it will overload 👍
28th Jan 2017, 3:25 AM
Jafca
Jafca - avatar
+ 2
@Hatsy Rei agrees so I must be right 😎
28th Jan 2017, 4:24 AM
Jafca
Jafca - avatar