why are we intializing INT_MAX with min and INT_MIN with max I did the opposite I’m getting a different answer
Doubt in the solution
yes then u wont get the desired results. to find max we initialize it to INT_MIN so that we have next higher number next time. same for min
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.