programming of c language on searching, sorting and merging?? please give me short program
Answers
Answered by
0
Answer:
Here is ur programme
Hope it helps u....mark as brainliest plz
Attachments:
Answered by
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
Math,
5 months ago
History,
5 months ago
Accountancy,
11 months ago
Science,
1 year ago
Psychology,
1 year ago
Hindi,
1 year ago