Redundant arguments in the function

in the implementation of code for Max Xor Pair, the function contains 4 parameters out of which 2 are never used in the function.
i have solved the problem by removing them. i want to know if there is any benefit of using those parameters.

@drjindalsubhash if the parameters are never getting used inside the function then there is no need to pass them in the function,it is just habit of many ones to pass array and size to function maybe that’s why they have passed them here.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.