is there only one way to put
int max=INT_MIN (equal to infinity)
and by including library climits . is there another method to do same
Find largest number doubt
Hi @manishayadav1360_c0939b9a17f994ff,
If you know the range of elements, like -1000000 <= a[i] <= 1000000, then
int max = INT_MIN
int max = -1000000
both are correct
like for int max= -1000000. we have to include climits library as well??
No, you don’t need to include climits library for this.
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.