Pair sum problem

i have tried brute force type of approach to solve this but it is getting segmentation fault. please tell me where i am going wrong ?

hello @Raghavsingla522
size of array can be upto 1000 so increase ur array size.

@aman212yadav i have increased the array size but it is giving wrong answer . not even one test case is passing .

hello @Raghavsingla522
check ur updated code here - > https://ide.codingblocks.com/s/237865

a) in output u were printing And but in actual it was and

b) print smaller number before bigger number

ya understood . thanks!! :+1: