diff --git a/MergeSort.cpp b/MergeSort.cpp new file mode 100644 index 0000000..3a138e3 --- /dev/null +++ b/MergeSort.cpp @@ -0,0 +1,27 @@ +/*This is the code for the Merging Sort function of two Sorted Arrays sorted + in ascending oder toan array containing the elements of both the arrays in ascending order */ +void MergeSort(int a[100],int m,int b[100],int n){ //This is the function definition with parametes including the two arrays to be merged sort in ascending order + int c[200]; + int k; + for(int i=0;int j=0;i