Skip to content

Instantly share code, notes, and snippets.

/* Merge sort in C */
#include<stdio.h>
#include<stdlib.h>
// Function to Merge Arrays L and R into A.
// lefCount = number of elements in L
// rightCount = number of elements in R.
void Merge(int *A,int *L,int leftCount,int *R,int rightCount) {
int i,j,k;
//header files included
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <process.h>
#include <fstream.h>
#include <string.h>
#include <time.h>
#include <iomanip.h>
#include <stdlib.h>