diff --git a/README.md b/README.md index c3e050b..c394558 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,34 @@ # Data Structures and Algorithms in C ## Won't count towards prize + +//bubble sort +#include +void swap(*a,*b) +{ + int c=*a; + *a=*b; + *b=c; +} + +void main() +{ + int ar[20],n,i,j; + printf("Enter size of array:"); + scanf("%d",&n); + printf("Enter the array:\n"); + for(i=0;iar[j+1]) + swap(&ar[j],&ar[j+1]); + } + } + + for(i=0;i