getting segmentation fault in my code please review
Buble Sort Doubt
Share your code so that i can debug it for you.
how cn i share it please tell me
Go to ide.codingblocks.com , paste your code there. Then press cntrl+s your code will be saved. After that go in your url bar, there will be a special generated code like, ide.codingblocks.com/s/28xxxx share this url with me. If you will find difficulty in this. Do let me know. I’ll guide you accordingly.
See this, two changes. Size of array was too big. And j should be less then n-i-1
no getting same error
/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe
Please wait i am checking the issue.
Don’t use unsigned. Use simple int. And check the code attached below this text.
->
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.