Bubble Sort using Templates #include #include template void bubble (T a[],int n) { for (int i=0; i void swap (X &a, X &b) { X temp=a; a=b; b=temp; } void main() { int x[5]={10,50,30,40,20}; float y[5]= {1.1,5.5,3.3,4.4,2.2}; clrscr(); bubble (x,5); bubble (y,5); cout << "sorted x-array:"; for (int i=0; i<5; i++) cout<