C Programming Examples
C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.
Our C tutorials will guide you to learn C programming one step at a time.
Examples
-
1C Program to Print a Character
-
2C Program to Print an Integer
-
3C Program to Add two Numbers
-
4C Program to Multiply two Numbers
-
5C Program to Calculate the Simple Interest
-
6C Program to Find Factorial of a Number
-
7C Program to Find the Largest Number Among Three Numbers
-
8C Program to Check Whether a Triangle is Valid or Not
-
9C Program to Show the use of Printf and Scanf
-
10C Program to Check Leap Year
-
1C Program to Check Whether a Number is Even or Odd
-
2C Program to Demonstrate the Use of a for Loop
-
3C Program to Generate Random Numbers
-
4C Program to demonstrate the use of a Nested loop
-
5C Program to demonstrate the use of a while loop
-
6C Program to Demonstrate the Use of a do-while Loop
-
7C Program to Reverse a String
-
8C Program to Count Number of Digits in an Integer
-
9C Program to Check Armstrong Number of n digits
-
10C Program to Calculate the Power of a Number
-
1C Function Arguments and Function Return Values
-
2strcmp() function
-
3strcpy() function
-
4C Program to Find Square root of a Number
-
5C Program to Find Cube of a Number
-
6C Program to Find the Largest Number Among Three Numbers
-
7C Program to Reverse a Number
-
8C Program to Check Palindrome Number Using Functions
-
9C Program to Check Armstrong Number Using Function
-
10C Program to Check Fibonacci Series using Function
-
1C Program to Add Two Matrices Using Multi-dimensional Arrays
-
2C Program to Sort an Array in Ascending Order
-
3C Program to Traverse the Elements of an Array
-
4C Array of Structures
-
5C Program to Check a Matrix is Sparse Matrix or Not
-
6C Program to Delete an Element from Array
-
7C Program to Delete Given Number from an Array
-
8C Program to Find Inverse of a Matrix
-
9C Program to Find Determinant of 2ร2 Matrix
-
10C Program to Find Determinant of 3X3 matrix
-
1C Program to Addition of Two Numbers using Pointers
-
2C Program to Array of Char Pointer
-
3C Program to Array of int Pointer
-
4C Program to Decrementing a Pointer
-
5C Program to Incrementing a Pointer
-
6Null pointer in C
-
7C Program for Comparing Pointers
-
8C Pointer to Pointer
-
9C Pointer to Function
-
10C Pointers & Structures
-
1C Program to Add String without using concat()
-
2C Program to Check Anagram
-
3C Program to Count the Number of Vowels
-
4C Program to Compare String without using strcmp()
-
5C Program to Compare Two Strings
-
6C Program to Concatenate Two Strings
-
7C Program to Convert Uppercase to Lowercase
-
8C Program to Copy String
-
9C Program to Copy String without Using strcpy() Function
-
10C Program to Count number of Uppercase and Lowercase Letters
-
1C Program to Demonstrate the Use of Structures
-
2C Program to Demonstrate the Use of Unions
-
3C Program to Demonstrate the Use of Structures with Pointers
-
4C Program to Accessing Members of Union Using Pointers
-
5C Program to Add two Complex Numbers using Structure
-
6C Program to Find the Largest and Smallest Element in an Array Using Structure
-
7C Program to Find the Area of a Rectangle using Structure
-
8C Program to Implement a Queue Using Union
-
9C Program to Calculate the Distance Between Two Points Using Structure
-
10C Program to Implement a Stack Using Union
-
1C program to copy contents of one file to another file
-
2C Program to Count Characters, Words, and Lines in a Text File
-
3C Program to Read file using fgetc()
-
4C Program to Create a Text File
-
5C Program to find the Size of a File
-
6C Program to List all the Files present in a Directory
-
7C Program to Reverse the Content of File and Print it
-
8C Program to Merge Contents of Two Files into a Third File
-
9C Program to Rename a file using rename() function
-
10C Program to check whether a file exists or not
-
1C Program to Printing Numbers from 1 to 10 Using Enumeration
-
2C Program to Representing Days of the Week Using Enumeration
-
3C Program to Defining colors using enumeration
-
4C Program to Representing Sizes Using Enumeration
-
5C Program to Representing Status Codes using Enumeration
-
6C Program to Defining boolean values using enumeration
-
7C Program to display months using the enum
-
8C Program to Defining Directions Using Enumeration
-
9C Program to Representing Card Suits using Enumeration
-
10C Program to Representing File Modes using Enumeration