C Programming

C Basic Syntax

Let’s have a quick glance at the basic syntax of C programming language. Syntax of C programming language is a set of rules, principles, and processes that govern the structure. C was the first widely successful high-level language to develop portable operating systems. C Basic Syntax C program has the following components (usually found in …

C Basic Syntax Read More »

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 »

Simple Stack Program in C Programming Language

Have you just started learning C programming and wondering how to implement stack? Let’s have a look at the simple stack program in the C programming language to understand the concept in a clear way. Simple Stack Program in C Programming Language #include<stdio.h> int stack[50],choice,n,top,x,i; void push(void); void pop(void); void display(void); int main() {    …

Simple Stack Program in C Programming Language Read More »