/*WRITE A PROGRAM TO DEVELOP A TEMPLATE FUNCTION SORT() FOR SORTING USING BUBBLE SORT.*/ #include #include template void bubblesort(T a[],int n) { for(int i=0;i void swap(X &b,X &c) { X temp= b; b=c; c=temp; } void main() { clrscr(); int x[5]={10,50,30,20,40}; float y[5]={1.1,6.5,2.2,9,5.6}; bubblesort(x,5); bubblesort(y,5); cout<<"Sorted x array is:"; for(int i=0;i<5;i++) { cout<