Array target-sum pairs problem

https://ide.codingblocks.com/s/48559

sir my 2nd output is not generated in desired manner. plz suggest some alternative

Hey Yukti, In this problem you are supposed to print the output in sorted order so you can resolve it in two ways either by sorting the array at starting only or you can sort the output at the time printing also.

hey yukti i correct the code you can check

https://ide.codingblocks.com/s/48593