Plz tell this query

IN the class compare,why we have put p1 and p2 pair only inside the function…cant we put any other pair like p3 and p1 or any other?

hello @garganshul151
p1 and p2 are just the variable name given to pairs,u can use any variable name of ur choice.

i am not asking that,i am asking that we have made 4 pairs,ie,p1 p2 p3 p4…so why we have chosen p1 p2 only

see p1 ,p2 in operator function is different than the pair p1 and p2 inside main function.

if u want u can change name of p1 and p2 of operator function it will still work.

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.