#include #define MAX 50 void mergeSort(int arr[],int low,int mid,int high); void partition(int arr[],int low,int high); int main(){ int merge[MAX],i,n; printf("Enter the total number of elements: "); scanf("%d",&n); printf("Enter the elements which to be sort: "); for(i=0;imid){ for(k=m;k<=high;k++){ temp[i]=arr[k]; i++; } } else{ for(k=l;k<=mid;k++){ temp[i]=arr[k]; i++; } } for(k=low;k<=high;k++){ arr[k]=temp[k]; } } Sample output: Enter the total number of elements: 5 Enter the elements which to be sort: 2 5 0 9 1 After merge sorting elements are: 0 1 2 5 9
More questions
1. In the relational model, relationships between relations or tables are created by using:
Correct Answer: Object Repository means not a collection of objects it's a common repository for all the people (testing, developers) for seeing all the data in single login for example QA wants to see 5 testers works then he goes to each person login and see the data It's very difficult job for this we can use Object Repository
Correct Answer: The OSI Model is used as a reference model The primary reason the OSI model was created was so that different networks could inter-operate Hence, different networks could communicate