Whats the mistake
Hey @garganshul151 there are couple of mistakes in your code
- you need to specify the type of function so please write void before insertion sort function
- you are initializing j with a[i-1] but j should be initialized with i-1.
Please feel free to ask if you are unable to understand anything or have any query.
abhi bhi nhi krrha work
Hey @garganshul151 it is working, here is link with the mentioned rectifications i have added comments against the changes https://ide.codingblocks.com/s/176683.
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.