why we can not return -1.why t is not suppotrted by-1
Why we can not retrurn -1
The return type was of T* which means it is a pointer variable. You must know that pointer variable stores address. This is why we can not return -1. It must be of the form of an address. Watch the video again. Prateek bhaiya must have explained there.
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.