diff --git a/Searching algos/quick sort b/Searching algos/quick sort new file mode 100644 index 00000000..f736aebe --- /dev/null +++ b/Searching algos/quick sort @@ -0,0 +1,72 @@ +#include +void printarray(int *A,int n); +void quicksort (int *A,int,int); +int partition (int *A ,int,int); +int main() +{ + int n,A[50],i; + printf("enter the number of elements in the array=\n"); + scanf("%d",&n); + printf("input the elements in the array=\n"); + for(i=0;ipivot) + { + j--; + } + if(i