Interview Questions and Answers :: Radisys
Home > Experience Archives > Radisys > Interview Question Set 4 > Discussion
12. Given a sorted array, write a function void findsum(int [],int x) that can print out all possible pair of elements in array that can make a sum equal to x.
Ex: int num[10]={-5,1,6,7,9,9,20,25,31,45} & if x is 26, then function should print {1,25}, {25,1}, {-5,31}, {31,-5}.
Answer:
No Discussion on this question yet!
No Discussion on this question yet!