C Programming Practical List
C is a general-purpose, high-level language that was originally developed by
Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was
originally first implemented on the DEC PDP-11 computer in 1972. In 1978,
Brian Kernighan and Dennis Ritchie produced the first publicly available
description of C, now known as the K&R standard. The UNIX operating
system, the C compiler, and essentially all UNIX application programs have
been written in C.
Below is a list of some common C programming topics:
C Program – Basic
- Write a C Program to print Hello World.
- Write a C Program to Print Your Own Name.
- Write a C Program to Print an Integer Entered By the User.
- Write a C Program to Add Two Numbers.
- Write a C Program to Check Whether a Number is Prime or Not.
- Write a C Program to Multiply two Floating-Point Numbers.
- Write a C Program to Print the ASCII Value of a Character.
- Write a C Program to Swap Two Numbers.
- Write a C Program to Calculate Fahrenheit to Celsius.
- Write a C Program to Find the Size of int, float, double, and char.
- Write a C Program to Add Two Complex Numbers.
- Write a C Program to Print Prime Numbers From 1 to N.
- Write a C Program to Find Simple Interest.
- Write a C Program to Find Compound Interest.
- Write a C Program for Area And Perimeter Of Rectangle.
C Program – Control Flow
- Write a C Program to Check Whether a Number is Positive, Negative, or Zero.
- Write a C Program to Check Whether Number is Even or Odd.
- Write a C Program to Check Whether a Character is Vowel or Consonant.
- Write a C Program to Find Largest Number Among Three Numbers.
- Write a C Program to Calculate Sum of Natural Numbers.
- Write a C Program to Print Alphabets From A to Z Using Loop.
- Write a C Program to Check Leap Year.
- Write a C Program to Find Factorial of a Number.
- Write a C Program to Make a Simple Calculator.
- Write a C Program to Generate Multiplication Table.
- Write a C Program to Print Fibonacci Series.
- Write a C Program to Find LCM of Two Numbers.
- Write a C Program to Check Armstrong Number.
- Write a C Program to Display Armstrong Numbers Between 1 to 1000.
- Write a C Program to Display Armstrong Number Between Two Intervals.
- Write a C Program to Reverse a Number.
- Write a C Program to Check Whether a Number is a Palindrome or Not.
- Write a C Program to Check Whether a Number is Prime or Not.
- Write a C Program to Display Prime Numbers Between Intervals.
- Write a C Program to Check whether the input number is a Neon Number.
- Write a C Program to Find All Factors of a Natural Number.
- Write a C program to Sum of Fibonacci Numbers at Even Indexes up to N Terms.
C Program – Pattern Printing
- Write a C Program to Print Simple Pyramid Pattern.
- Write a C Program to Print Given Triangle.
- Write a C Program to Print 1800 Rotation of Simple Pyramid.
- Write a C Program to Print Inverted Pyramid.
- Write a C Program to Print Number Pattern.
- Write a C Program to Print Character Pattern.
- Write a C Program to Print Continuous Character Pattern.
- Write a C Program to Print Hollow Star Pyramid.
- Write a C Program to Print Inverted Hollow Star pyramid.
- Write a C Program to Print Hollow Star Pyramid in a Diamond Shape.
- Write a C Program to Print Full Diamond Shape Pyramid.
- Write a C Program to Print Pascal’s Pattern Triangle Pyramid.
- Write a C Program to Print Floyd’s Pattern Triangle Pyramid.
- Write a C Program to Print Reverse Floyd pattern Triangle Pyramid.
Click here to view more Star Pattern.
C Program – Functions
- Write a C Program to Check Prime Number By Creating a Function.
- Write a C Program to Display Prime Numbers Between Two Intervals Using Functions.
- Write a C Program to Find All Roots of a Quadratic Equation.
- Write a C Program to Check Whether a Number can be Express as Sum of Two Prime Numbers.
- Write a C Program to Find the Sum of Natural Numbers using Recursion.
- Write a C Program to Calculate the Factorial of a Number Using Recursion.
- Write a C Program to Find G.C.D Using Recursion.
- Write a C Program to Reverse a Stack using Recursion.
- Write a C Program to Calculate Power Using Recursion.
C Program – Arrays
- Write a C Program to Print a 2D Array.
- Write a C Program to Find the Largest Element in an Array.
- Write a C Program to Find the Maximum and Minimum in an Array.
- Write a C Program to Search an Element in an Array (Binary search).
- Write a C Program to Calculate the Average of All the Elements Present in an Array.
- Write a C Program to Sort an Array using Bubble Sort.
- Write a C Program to Sort an Array using Merge Sort.
- Write a C Program to Sort an Array Using Selection Sort.
- Write a C Program to Sort an Array Using Insertion Sort.
- Write a C Program to Sort the Elements of an Array in Descending Order.
- Write a C Program to Sort the Elements of an Array in Ascending Order.
- Write a C Program to Remove Duplicate Elements From a Sorted Array.
- Write a C Program to Merge Two Arrays.
- Write a C Program to Remove All Occurrences of an Element in an Array.
- Write a C Program to Find Common Array Elements .
- Write a C Program to Copy All the Elements of One Array to Another Array.
- Write a C Program For Array Rotation.
- Write a C Program to Sort the 2D Array Across Rows.
- Write a C Program to Check Whether Two Matrices Are Equal or Not.
- Write a C Program to Find the Transpose.
- Write a C Program to Find the Determinant of a Matrix.
- Write a C Program to Find the Normal and Trace.
- Write a C Program to Add Two Matrices.
- Write a C Program to Multiply Two Matrices.
- Write a C Program to Print Boundary Elements of a Matrix.
- Write a C Program to Rotate Matrix Elements.
- Write a C Program to Compute the Sum of Diagonals of a Matrix.
- Write a C Program to Interchange Elements of First and Last in a Matrix Across Rows.
- Write a C Program to Interchange Elements of First and Last ina Matrix Across Columns.
C Program – Strings
- Write a C Program to Add or Concatenate Two Strings.
- Write a C Program to Add 2 Binary Strings.
- Write a C Program to Get a Non-Repeating Character From the Given String.
- Write a C Program to check if the string is palindrome or not.
- Write a C Program to Reverse an Array or String.
- Write a C program to Reverse a String Using Recursion.
- Write a C Program to Find the Length of a String.
- Write a C Program to Sort a String.
- Write a C Program to Check For Pangram String.
- Write a C Program to Print the First Letter of Each Word.
- Write a C Program to Determine the Unicode Code Point at a Given Index.
- Write a C Program to Remove Leading Zeros.
- Write a C Program to Compare Two Strings.
- Write a C Program to Compare Two Strings Lexicographically.
- Write a C Program to Insert a String into Another String.
- Write a C Program to Split a String into a Number of Sub-Strings.
C Program – Conversions
- Write a C Program For Boolean to String Conversion.
- Write a C Program For Float to String Conversion.
- Write a C Program For Double to String Conversion.
- Write a C Program For String to Long Conversion.
- Write a C Program For Long to String Conversion.
- Write a C Program For Int to Char Conversion.
- Write a C Program For Char to Int Conversion.
- Write a C Program For Octal to Decimal Conversion.
- Write a C Program For Decimal to Octal Conversion.
- Write a C Program For Hexadecimal to Decimal Conversion.
- Write a C Program For Decimal to Hexadecimal Conversion.
- Write a C Program For Decimal to Binary Conversion.
- Write a C Program For Binary to Decimal Conversion.
C Program – Pointers
- How to Return a Pointer from a Function in C.
- How to Declare a Two-Dimensional Array of Pointers in C?
- Write a C Program to Find the Largest Element in an Array using Pointers.
- Write a C Program to Swap Two Numbers.
- Write a C Program to Sort an Array using Pointers.
- Write a C Program to Sort a 2D Array of Strings.
- Write a C Program to Check if a String is a Palindrome using Pointers.
- Write a C Program to Create a Copy of a Singly Linked List using Recursion.
- C Program – Structures and Unions
- Write a C Program to Store Information of Students Using Structure.
- Write a C Program to Store Student Records as Structures and Sort them by Name.
- Write a C Program to Add N Distances Given in inch-feet System using Structures.
- Write a C Program to Add Two Complex Numbers by Passing Structure to a Function.
- Write a C Program to Store Student Records as Structures and Sort them by Age or ID.
- Read/Write Structure to a File in C.
- Flexible Array Members in a Structure in C.
C Program – File IO
- Write a C Program to Create a Temporary File.
- Write a C Program to Read/Write Structure to a File.
- Write a C Program to Rename a file.
- Write a C Program to Make a File Read-Only.
- Write a C program to Compare Two Files and Report Mismatches.
- Write a C Program to Copy One File into Another File.
- Write a C Program to Print all the Patterns that Match Given Pattern From a File.
- Write a C Program to Append the Content of One Text File to Another.
- Write a C Program to Read Content From One File and Write it Into Another File.
- Write a C Program to Read and Print all Files From a Zip File.