Set lower bounds return the value to the set.end(), whenever a key passed, is greater than the maximum value in the set…Here answer should have been 12 but since it isn’t in the option it should have been Garbage Value
please check into this…
Set lower bounds return the value to the set.end(), whenever a key passed, is greater than the maximum value in the set…Here answer should have been 12 but since it isn’t in the option it should have been Garbage Value
please check into this…
@shivanshu12800 end() does not points to last element but points ahead of it!
so answer will not be 12, but instead a garbage value (getting ans as 6 when running on ide)
Okay! thank you so much
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.