You are given a sorted array of positive integers and a number 'X'. Print out all pairs of numbers whose sum is equal to X. Print out only unique pairs and the pairs should be in ascending orderYour program should accept as its first argument a filename. This file will contain a comma separated list of sorted numbers and then the sum 'X', separated by semicolon. Ignore all empty lines. If no pair exists, print the string NULL eg.
1,2,3,4,6;52,4,5,6,9,11,15;201,2,3,4;50
1,4;2,35,15;9,11NULLhow to solve this question.......please some one help me