C Programming

Challenging C Programs

Are you excited to make your C programming journey even more fun with challenging C programs? You can try to solve all the programs by your self first and later you can have a glance at solved solutions of challenging C programs. Challenging C Programs with solutions: Cipher-decipher Program in C Encoding program In C …

Challenging C Programs Read More »

Quick Sort Program in C Using Recursion

In this Searching and Sorting in C, we will have a look at how to write a quick sort program in C using recursion. Quick Sort Program in C Using Recursion #include<stdio.h> void quick_sort(int[],int,int); int partition(int[],int,int); int main() { int a[50],n,i; printf(“How many elements?”); scanf(“%d”,&n); printf(“\nEnter array elements:”); for(i=0;i<n;i++) scanf(“%d”,&a[i]); quick_sort(a,0,n-1); printf(“\nArray after sorting:”); for(i=0;i<n;i++) printf(“%d …

Quick Sort Program in C Using Recursion Read More »