0% found this document useful (0 votes)
16 views

C Program

The document lists various C programming examples organized into different categories such as Hello World programs, control flow programs, pattern printing programs, programs using functions, arrays, strings, pointers, structures and unions, and file I/O programs. It provides over 100 small C programs covering fundamental and advanced concepts in C programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

C Program

The document lists various C programming examples organized into different categories such as Hello World programs, control flow programs, pattern printing programs, programs using functions, arrays, strings, pointers, structures and unions, and file I/O programs. It provides over 100 small C programs covering fundamental and advanced concepts in C programming.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

C Hello World Program


2. C Program to Print Your Own Name
3. C Program to Print an Integer Entered By the User
4. C Program to Add Two Numbers
5. C Program to Check Whether a Number is Prime or Not
6. C Program to Multiply two Floating-Point Numbers
7. C Program to Print the ASCII Value of a Character
8. C Program to Swap Two Numbers
9. C Program to Calculate Fahrenheit to Celsius
C Program to Find the Size of int, float, double, and char
C Program to Add Two Complex Numbers
C Program to Print Prime Numbers From 1 to N
C Program to Find Simple Interest
C Program to Find Compound Interest
C Program for Area And Perimeter Of Rectangle

C Program – Control Flow


1. C Program to Check Whether a Number is Positive, Negative, or Zero
2. C Program to Check Whether Number is Even or Odd
3. C Program to Check Whether a Character is Vowel or Consonant
4. C Program to Find Largest Number Among Three Numbers
5. C Program to Calculate Sum of Natural Numbers
6. C Program to Print Alphabets From A to Z Using Loop
7. C Program to Check Leap Year
8. C Program to Find Factorial of a Number
9. C Program to Make a Simple Calculator
C Program to Generate Multiplication Table
C Program to Print Fibonacci Series
C Program to Find LCM of Two Numbers
C Program to Check Armstrong Number
C Program to Display Armstrong Numbers Between 1 to 1000
C Program to Display Armstrong Number Between Two Intervals
C Program to Reverse a Number
C Program to Check Whether a Number is a Palindrome or Not
C Program to Check Whether a Number is Prime or Not
C Program to Display Prime Numbers Between Intervals
C Program to Check whether the input number is a Neon Number
C Program to Find All Factors of a Natural Number
C program to Sum of Fibonacci Numbers at Even Indexes up to N Terms
C Program – Pattern Printing
1. C Program to Print Simple Pyramid Pattern
2. C Program to Print Given Triangle
3. C Program to Print 180 0 Rotation of Simple Pyramid
4. C Program to Print Inverted Pyramid
5. C Program to Print Number Pattern
6. C Program to Print Character Pattern
7. C Program to Print Continuous Character Pattern
8. C Program to Print Hollow Star Pyramid
9. C Program to Print Inverted Hollow Star pyramid
C Program to Print Hollow Star Pyramid in a Diamond Shape
C Program to Print Full Diamond Shape Pyramid
C Program to Print Pascal’s Pattern Triangle Pyramid
C Program to Print Floyd’s Pattern Triangle Pyramid
C Program to Print Reverse Floyd pattern Triangle Pyramid

C Program – Functions
1. C Program to Check Prime Number By Creating a Function
2. C Program to Display Prime Numbers Between Two Intervals Using
Functions
3. C Program to Find All Roots of a Quadratic Equation
4. C Program to Check Whether a Number can be Express as Sum of Two
Prime Numbers
5. C Program to Find the Sum of Natural Numbers using Recursion
6. C Program to Calculate the Factorial of a Number Using Recursion
7. C Program to Find G.C.D Using Recursion
8. C Program to Reverse a Stack using Recursion
9. C Program to Calculate Power Using Recursion

C Program – Arrays
1. C Program to Print a 2D Array
2. C Program to Find the Largest Element in an Array
3. C Program to Find the Maximum and Minimum in an Array
4. C Program to Search an Element in an Array (Binary search)
5. C Program to Calculate the Average of All the Elements Present in an Array
6. C Program to Sort an Array using Bubble Sort
7. C Program to Sort an Array using Merge Sort
8. C Program to Sort an Array Using Selection Sort
9. C Program to Sort an Array Using Insertion Sort
C Program to Sort the Elements of an Array in Descending Order
C Program to Sort the Elements of an Array in Ascending Order
C Program to Remove Duplicate Elements From a Sorted Array
C Program to Merge Two Arrays
C Program to Remove All Occurrences of an Element in an Array
C Program to Find Common Array Elements
C Program to Copy All the Elements of One Array to Another Array
C Program For Array Rotation
C Program to Sort the 2D Array Across Rows
C Program to Check Whether Two Matrices Are Equal or Not
C Program to Find the Transpose
C Program to Find the Determinant of a Matrix
C Program to Find the Normal and Trace
C Program to Add Two Matrices
C Program to Multiply Two Matrices
C Program to Print Boundary Elements of a Matrix
C Program to Rotate Matrix Elements
C Program to Compute the Sum of Diagonals of a Matrix
C Program to Interchange Elements of First and Last in a Matrix Across
Rows
C Program to Interchange Elements of First and Last in a Matrix Across
Columns

C Program – Strings
1. C Program to Add or Concatenate Two Strings
2. C Program to Add 2 Binary Strings
3. C Program to Get a Non-Repeating Character From the Given String
4. C Program to check if the string is palindrome or not
5. C Program to Reverse an Array or String
6. C program to Reverse a String Using Recursion
7. C Program to Find the Length of a String
8. C Program to Sort a String
9. C Program to Check For Pangram String
C Program to Print the First Letter of Each Word
C Program to Determine the Unicode Code Point at a Given Index
C Program to Remove Leading Zeros
C Program to Compare Two Strings
C Program to Compare Two Strings Lexicographically
C Program to Insert a String into Another String
C Program to Split a String into a Number of Sub-Strings
C Program – Pointers
1. How to Return a Pointer from a Function in C
2. How to Declare a Two-Dimensional Array of Pointers in C?
3. C Program to Find the Largest Element in an Array using Pointers
4. C Program to Swap Two Numbers
5. C Program to Sort an Array using Pointers
6. C Program to Sort a 2D Array of Strings
7. C Program to Check if a String is a Palindrome using Pointers
8. C Program to Create a Copy of a Singly Linked List using Recursion

C Program – Structures and Unions


1. C Program to Store Information of Students Using Structure
2. C Program to Store Student Records as Structures and Sort them by Name
3. C Program to Add N Distances Given in inch-feet System using Structures
4. C Program to Add Two Complex Numbers by Passing Structure to a
Function
5. C Program to Store Student Records as Structures and Sort them by Age or
ID
6. Read/Write Structure to a File in C
7. Flexible Array Members in a Structure in C

C Program – File IO
1. C Program to Create a Temporary File
2. C Program to Read/Write Structure to a File
3. C Program to Rename a file
4. C Program to Make a File Read-Only
5. C program to Compare Two Files and Report Mismatches
6. C Program to Copy One File into Another File
7. C Program to Print all the Patterns that Match Given Pattern From a File
8. C Program to Append the Content of One Text File to Another
9. C Program to Read Content From One File and Write it Into Another File
C Program to Read and Print all Files From a Zip File

You might also like