Data Structures Lab Manual / Data Structures Bubble Sort C Program

Program Name: Write a C Program for Linear Seach in Data Structures
Theory
Bubble / sinking sort compares adjacent elements and swaps them if they are in 
the wrong order and process pass through the list is repeated until the list 
is sorted.
Program Code



Input:
Enter Number of Elements: 5
Enter Array Elements: 5 3 7 1 9
Output:
Sorted Array: 	1	3	5	7	9


Home     Back