I am getting very faint sound of this video is not audible please correct it. Unable to hear it even at 100% volume (Dynamic memory allocation in c++ introduction)
Sound of video is very faint unable to hear it
why maximum size of int arr is arr[100005] and not arr[100000] what is the use of this addition an extra 5 please explain.
Hi divya
sorry for the sound inconvenience. I will inform the mentor about this.
For your second doubt we always work with some little extra space as to avoid segmentation faults that may occur in your code for accessing out of bound memory. But we can also allocate an array of 100000. That’s not an issue.
Hope it helps:)
so in any cp editorial that I see 1000005 taken it is taken just for the sake to avoid accessing out of bound memory access
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.