Back To C++ Basic Index
//program to demonstrate bubble sort on a single dimensional array (program sorts the array in descending order) #include
#include
void main() { int arr[5]={1,2,3,4,5}; int i,j,temp; clrscr(); for(i=0;i<5;i++) { for(j=0;j<4;j++) { if(arr[j]