# All posts tagged Bubble Sort

Bubble Sort in PHP Bubble Sort, it compare each pair of adjacent items and swapping them if they are in the wrong order. Then the list is repeated until no swaps are needed, which indicates that the list is sorted. This algorithm use array as a data structure so that . . . Read more

Bubble Sort Data Structure Example in C C program for bubble sort: c programming code for bubble sort to sort numbers or arrange them in ascending order. #include <stdio.h> #define MAX 100 int main() { int arr[MAX],limit; int i,j,temp; printf(“Enter total number of elements: “); scanf(“%d”,&limit); /*Read array*/ printf(“Enter array . . . Read more