Unknown element in the array

i have commented questions in the code :slight_smile:
thank you :slight_smile:

Hey @kul_boii
C++ doesn’t do boundary limit exceeded check with arrays by default. So it expects you to give correct location yourself. If you exceed array bounds, you’ll get garbage values. You’ll get segmentation fault is you try to access a memory location not reserved for your program.

If your doubt is resolved please mark it as closed.

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.