C Programs

This section will cover simple c programs with input/output example. We have also describe the program logic for the better under standing specially for c programming beginners.

Simple C Programs With Example

This section is a collection of basic c programs with input/output examples which are number conversion, number swapping, airthmetic, number calculation, length of a string, program to calculate simple interest, arrays programs, binary search program in c, programs to illustrate call by value and call by reference, c programs to print number & star triangle, pointers programs, fibonacci series program in c, reserve keywords lists, prime number program, armstrong number program, leap year program and much more...

SNo C Programs
1 C Programming Basics
2 C Program: Find The Sum of Two Numbers
3 Reverse Number Program in C
4 Prime Number Program in C
5 How to Calculate Gross Salary of a Person in C
6 How to Compile and Run a C Programs
7 Your First C Program
8 Reserve Keywords List C
9 If Else Statement in C
10 Print Star Triangle in C
11 Fibonacci Series Program in C
12 Pointers in C
13 Palindrome Program in C
14 Armstrong Number Program in C
15 Check Whether a Number is Even or Odd
16 Check Leap Year in C
17 Print Number Triangle in C
18 Binary Search Program in c
19 Print Table of Number in C
20 C Program to Find Length of a String
21 C Program to Convert Binary to Octal
22 C Programs and Examples with Solutions
23 C Program to Find ASCII Value of a Character
24 C program to Print First 10 Natural Numbers
25 Find Greatest Number From 3 Numbers
26 Push an Element in an Array Using C
27 C Program to Swap Two Numbers
28 C Program to Calculate the Power of a Number
29 C Program to Merge Two arrays
30 C Program to Find the Simple Interest
31 Calculate the Length of a String in C
32 What is Temporary Variable
33 Call by Value and Call by Reference in C
34 C Program to Convert Binary to Decimal Number
35 C Program to Convert Decimal to Binary Number
36 Number System Conversion Programs in C Programming Language
37 C Program to Convert Decimal to Hexadecimal Number
38 C Program to Print the Alphabet
39 How to delete duplicate elements from an array in c programming language
40 Breadth First Search (BFS) Program in C
41 Depth First Search (DFS) Program in C
42 Bubble Sort algorithms & Program in C Programming Language
43 How to Shutdown Computer Using C Program
44 Write a C Program to Calculate Average Using Arrays
45 How to Swap Two Numbers Without Using Any Third Variable in C Programming
46 Selection Sort Program in C Programming Language
47 String Functions in C Programming Language
48 C Programming Interview Questions and Answers
49 C Program to Find the Array Size
50 C Program to Delete an Element From an Array
51 How to Find the Area of a Square Using C
52 C Program to Find the Largest Element From an Array
53 C Program to Generate Random Number
54 How to Print an Array in C Programming Language
55 How to Create a New Directory in C Programming Language
56 C Program to Copy an Array to Another Array
57 C Program to Accept Paragraph as Input and Display Output
58 C Program to Find Sum of N Numbers
59 C Program to Display Hostname And IP Address
60 Sizeof Operator in C Programming Language
61 C Program to Convert a Number to a String
62 C Program to Convert Decimal to Octal Number
63 Execute C Program Without main() Function
64 Linked List Program in C
65 Merge Sort Program in C
66 Linear Search Program in C Programming Language
67 Insertion Sort Program in C
68 C Program to Print ASCII Table
69 C Program to Split an Array From Specified Position
70 C Program to Reverse a Linked List
71 C Program to Compare Two Strings With Output
72 C Program to Sort a Stack Using Recursion
73 C program to count the number of lines in a file
74 C program to calculate compound interest
75 C program to compute sum of the array elements
76 C program to copy text from one file to other files
77 C program to display mouse pointer in textmode
78 C program to perform stack operations
79 C program to implement hash tables
80 C program to generate the Captcha
81 C program to print digital clock
82 C program to find maximum element in array
83 Interpolation search program in c with output
84 C program to write a sentence to a file with output
85 C program to reverse an array with the output
86 C program to calculate the area of a square
87 C program for binary search on array using recursion
88 Give an example of recursive function
89 C program for matrix multiplication
90 C program for implement the hash tables
91 C program for Huffman Coding With the output
92 C program to pancake sorting with the output
93 C program for different tree traversals
94 C program to delete the binary search tree (BST)
95 C program to print next greater elements in a given array
96 Frequently asked c programs for interview
97 Age Calculator- c program to calculate age
98 C program for counting sort
99 C Programming Examples on Array
100 C Programming Examples on Function
101 C Program to Convert Binary to Hexadecimal Number
102 C Programming Examples on Data-Structures
103 C program to construct a B tree
104 C program implement an analog clock with the output
105 C program for subtraction of matrices with the output
106 C program to find the minimum distance between two numbers
107 C program to create a file & store information
108 C program delete a specific line from a text file
109 C program to list files in a directory
110 C program to copy one file into another file
111 C Programming examples on file handling
112 C program to find the size of a file
113 Traffic light program in c programming
114 C program to draw a bar chart
115 C program to draw pie chart
116 C program to draw a 3d bar chart
117 C program to reverse a stack using recursion
118 C program to find Sum of N numbers using recursion
119 C programming examples using recursion
120 C program to find the length of the string using recursion
121 C program to implement selection sort recursively
122 C program to find next prime palindrome number
123 tmpfile() function in C
124 C program to swap two numbers using bitwise operators
125 C program to insert a node in AVL tree
126 C program to print contents of the file
127 C program to count number of lines in a file
128 C program to delete a file from directory
129 C program for naive pattern searching algorithm
130 C program to find area of a triangle
131 C# program to print the area of a triangle
132 C program to convert Uppercase to Lowercase
133 C program to delete words from the sentence
134 C program to find the smallest element in array
135 C program to find the length of string
136 C program to add two numbers using Pointer
137 C program to print pascal triangle
138 C program to find the length of the linked list
139 C program for Prim’s Algorithm
140 C program to display upper triangular matrix
141 C program to extract last two digits of a given year
142 Simple C Programs with the output
143 C program to swap two numbers using Bitwise Operators
144 C program to add two complex numbers
145 C program to find the size of a union
146 C program to print environment variables
147 Pass by Value
148 Pass by Reference
149 C program to reverse a linked list in groups of given size
150 C programs using pointers solved examples
151 C program to show function pointers as a parameter
152 C program to calculate median of an array
153 C program to display its own source code as its output
154 C program to capitalize the first letter of every word
155 Program for dijkstra’s algorithm in C
156 C program to demonstrate the Nested Structure
157 C program to calculate sum of all digits using recursion
158 C function to Swap strings using the pointers
159 C Program to print lower diagonal of a matrix
160 C Program to compare contents of two files
161 C Program to print contents in reverse order of a file
162 C program to find the number of lines in a text file
163 C program to update details of employee using files
164 C program to implement queues using stacks
165 C program to check string is palindrome using stack
166 C program to create a mirror copy of a tree and display using BFS Traversal
167 strcpy() Function in C Programming Language
168 strcmp() Function in C Programming Language
169 strncat() Function in C Programming Language
170 C program to find largest gap between two elements in an array
171 C program to find middle of linked list
172 C program to multiply two floating point numbers
173 Stack implementation in c programming with the example
174 C program to find the possible subsets of the string
175 C program to concatenate two strings lexically
176 C program to accepts two strings and compare
177 C program to find the Nth fibonacci number using recursion
178 C program find the length of the linked list using recursion
179 C program to reverse a string using stacks
180 C Program to check whether given Square Matrix is symmetric or not
181 C program to find length of the longest bitonic subarray
182 C Program to sort a linked list 0s, 1s or 2s with the output
183 C program to delete N nodes after M nodes of a linked list
184 How to Represent Linear Equations in Matrix Form in C
185 C program to segregate even and odd elements of array
186 How to Sort Linked List to Balanced BST
187 C Program to Implement Naor-Reingold Pseudo Random Function
188 C Program to Implement the Bin Packing Algorithm
189 C program to search for an element in the linked list without using recursion
190 C program to traverse the tree recursively
191 C program to find the common ancestor and print the path
192 C program to count number of non leaf nodes of a given tree
193 C program to find the sum of all nodes in a tree
194 C implementation of inserting a new node to a link list
195 C program to solve the Number of stopping station problem
196 Program to delete n characters from a given position in a given string
197 How to write c program code for pow
198 C program remove spaces, blanks from a string
199 conio.h functions list in c
200 stdio.h library functions list in c

If you want to write a c program and share on this page, then you can share your program with input and output by using the Request Tutorial page. I will add your program with your name and photo in this page.

Keywords: c program, c programming, basic programs in c, c language program, programs in c language, programs in c, c programs with output, c programs with examples

Comments and Discussions

Your email address will not be published. Required fields are marked *