why its giving segmentation falut
Https://ide.codingblocks.com/s/262027
@Aditya-Kushwaha-914550392281281 you can see the changes I made here https://ide.codingblocks.com/s/262044 I have commented them as well.
Please mark the doubt as resolved in case of no further queries.
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.