first of all while running this code it will ask for number of elements of both the array and then enter elements for each array so the code will gives you common elements in both the arrays.
In code first we sort the elements of both arrays then compare and store it into resultant array.
first of all while running this code it will ask for number of elements of both the array and then enter elements for each array so the code will gives you common elements in both the arrays. In code first we sort the elements of both arrays then compare and store it into resultant array.