as m=99
for x=2
start=(99/2)*2=98
i=start
segment[i-m]
i-m=-1
How -1 index can exist in array ?
Why error is not comming at 18:23
@yaduvanshii092 c++ arrays have poor exception handling, if you use a vector then you’ll get a segmentation fault
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.