C++ Program to Merge Two Sorted Arrays
Given two sorted arrays, the task is to merge them in a sorted manner.Examples:Â Input: arr1[] = { 1, 3, 4, 5}, arr2[] = {2, 4, 6, 8}Â Output: arr3[] = {1, 2, 3, 4, 4, 5, 6, 8} Input: arr1[] = { 5, 8, 9}, arr2[] = {4, 7, 8}Â Output: arr3[] = {4, 5, 7, 8, 8, 9}Â Recommended: Please solve it on âPRACTIC