Https://ide.codingblocks.com/s/279871

why my code is giving segmentation error will u pleease correct it

hello @Aditya-Kushwaha-914550392281281
image
declare these two array as global and then try

bhaiya its already declared globally

BY Globally i mean to declare them outside the main function ,on the top.
image

it working bhjiaya thanx a lot

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.