Computer Science, asked by vibhapandey3383, 10 months ago

programming of c language on searching, sorting and merging?? ​please give me short program

Answers

Answered by snehatalekar68
0

Answer:

Here is ur programme

Hope it helps u....mark as brainliest plz

Attachments:
Answered by ankitsunny
9

Explanation:

* UTILITY FUNCTIONS */

/* Function to print an array */

void printArray(int A[], int size)

{

int i;

for (i=0; i < size; i++)

printf("%d ", A[i]);

printf("\n");

}

/* Driver program to test above functions */

int main()

{

int arr[] = {12, 11, 13, 5, 6, 7};

int arr_size = sizeof(arr)/sizeof(arr[0]);

printf("Given array is \n");

printArray(arr, arr_size);

mergeSort(arr, 0, arr_size - 1);

printf("\nSorted array is \n");

printArray(arr, arr_size);

return 0;

Similar questions