C C · Programs

C Programs

Browse every C program — each with complete source code, sample output and a line-by-line explanation.

C Programs
35 articles · Intermediate
C Program to Read the First Line From a File
C Programs Intermediate

C Program to Read the First Line From a File

Discover how to use a C program to read the first line from a file. Includes full code and sample output for easy understanding.

C Program to Store Information of Students Using Structure
C Programs Intermediate

C Program to Store Information of Students Using Structure

See how to use a structure in C to store and manage student information. Includes full source code and sample output for clarity.

C Program to Write a Sentence to a File
C Programs Intermediate

C Program to Write a Sentence to a File

Learn how to write a sentence to a file using C. Includes complete source code, a step-by-step guide, and sample output for easy understanding.

C Program to Find the Frequency of Characters in a String
C Programs Intermediate

C Program to Find the Frequency of Characters in a String

Discover how to count the frequency of each character in a string using a C program. Includes full code, breakdown of algorithm, and sample output.

C Program to Remove all Characters Except Alphabets
C Programs Intermediate

C Program to Remove all Characters Except Alphabets

Discover how a C program removes all characters except alphabets from a string. Includes complete code and sample output for easy understanding.

C Program to Sort Elements in Lexicographical Order
C Programs Intermediate

C Program to Sort Elements in Lexicographical Order

Explore a C program that sorts strings in lexicographical order. Includes full code, detailed explanation, and sample output.

C Program to Add Two Distances in Inch-Feet Using Structures
C Programs Intermediate

C Program to Add Two Distances in Inch-Feet Using Structures

Explore how to add two distances in the inch-feet system using structures in C. Includes full code, algorithm explanation, and sample output.

C Program to Count Vowels and Consonants in a String
C Programs Intermediate

C Program to Count Vowels and Consonants in a String

Explore a C program that counts vowels and consonants in a user-input string. Includes full code, explanation, and sample output.

C Program to Multiply Two Matrices Using Multi-dimensional Arrays
C Programs Intermediate

C Program to Multiply Two Matrices Using Multi-dimensional Arrays

Learn how to multiply two matrices using multi-dimensional arrays in C. Includes full code and sample output for better understanding.

C Program to Find Transpose of a Matrix with Example
C Programs Intermediate

C Program to Find Transpose of a Matrix with Example

Learn how to write a C program to find the transpose of a matrix. Includes full code and sample output for better understanding.

C Program to Add Two Matrices Using Multi-dimensional Arrays
C Programs Intermediate

C Program to Add Two Matrices Using Multi-dimensional Arrays

Learn how to add two matrices using multi-dimensional arrays in C with full code and sample output. Understand matrix operations easily.

C Program to Find Largest Element in an Array
C Programs Intermediate

C Program to Find Largest Element in an Array

Discover how to find the largest element in an array using C. Includes full code, step-by-step algorithm, and sample output.

C Program to Convert Hexadecimal to Decimal
C Programs Intermediate

C Program to Convert Hexadecimal to Decimal

Learn how to convert a hexadecimal number to decimal using a C program. Includes full code, algorithm, and sample output for better understanding.

C Program to Convert Binary to Decimal with Code and Output
C Programs Intermediate

C Program to Convert Binary to Decimal with Code and Output

Understand how to convert binary numbers to decimal in C. Includes full code, an algorithm breakdown, and sample output for practice.

C Program to Convert Decimal to Octal
C Programs Intermediate

C Program to Convert Decimal to Octal

Explore a C program that converts decimal numbers to octal, complete with full code, explanation, and sample output.

C Program to Convert Octal to Decimal: Full Code & Output
C Programs Intermediate

C Program to Convert Octal to Decimal: Full Code & Output

Convert octal numbers to decimal in C. Complete program with source code and sample output included. Ideal for learning number conversions.

C Program to Convert Octal to Binary with Example
C Programs Intermediate

C Program to Convert Octal to Binary with Example

Explore how to convert an octal number to binary in C. Includes complete code, algorithm walkthrough, and sample output for clarity.

C Program to Convert Binary to Octal with Sample Output
C Programs Intermediate

C Program to Convert Binary to Octal with Sample Output

Explore a C program that converts binary to octal. This guide includes full code, a sample output, and an algorithm explanation.

C Program to Convert Binary to Decimal and Vice-Versa
C Programs Intermediate

C Program to Convert Binary to Decimal and Vice-Versa

Explore a C program that converts binary numbers to decimal and vice-versa. Includes full code and sample output for thorough comprehension.

C Program to Display Factors of a Number
C Programs Intermediate

C Program to Display Factors of a Number

Write a C program to display factors of a given number. Includes full code and sample output. Understand how to find factors using loops and conditions.

C Program to Display Armstrong Number Between Two Intervals
C Programs Intermediate

C Program to Display Armstrong Number Between Two Intervals

Learn how to use C to find and display Armstrong numbers between two intervals. Includes full code and sample output.

C Program to Display Prime Numbers Between Two Intervals
C Programs Intermediate

C Program to Display Prime Numbers Between Two Intervals

Discover how to write a C program to find prime numbers between two intervals. Includes complete code and sample output.

C Program to Check Armstrong Number
C Programs Intermediate

C Program to Check Armstrong Number

Learn to write a C program to check if a number is an Armstrong number. Includes full code, algorithm, and sample output.

C Program to Check Whether a Number is Palindrome or Not
C Programs Intermediate

C Program to Check Whether a Number is Palindrome or Not

Explore a C program that checks if a number is a palindrome. Includes source code, detailed explanation, and sample output.

C Program to Check Whether a Number is Prime or Not
C Programs Intermediate

C Program to Check Whether a Number is Prime or Not

This C program checks if a given number is prime. Includes full code and sample output to guide you through the process.

C Program to Reverse a Number with Example
C Programs Intermediate

C Program to Reverse a Number with Example

Explore how to reverse a number in C. Includes full code and sample output.

C Program to Count Number of Digits in an Integer
C Programs Intermediate

C Program to Count Number of Digits in an Integer

Explore how a C program can count the number of digits in an integer using loops. Full code and output included.

C Program to Display Fibonacci Sequence with Example
C Programs Intermediate

C Program to Display Fibonacci Sequence with Example

Explore how to write a C program to display the Fibonacci sequence. Includes complete source code and sample output for clarity.

C Program to Find the Roots of a Quadratic Equation
C Programs Intermediate

C Program to Find the Roots of a Quadratic Equation

Explore a C program that calculates the roots of a quadratic equation using the quadratic formula. Full code and sample output included.

C Program to Check Leap Year with Code and Output
C Programs Intermediate

C Program to Check Leap Year with Code and Output

Check if a year is a leap year using C with this program. Get the full code, explanation, and sample output.

C Program to Check Whether a Character is a Vowel or Consonant
C Programs Intermediate

C Program to Check Whether a Character is a Vowel or Consonant

Explore a C program that identifies if an entered character is a vowel or consonant. Includes full code and sample output.

C Program to Calculate Area and Circumference of Circle
C Programs Intermediate

C Program to Calculate Area and Circumference of Circle

Calculate area and circumference of a circle using C. Includes full code and sample output to demonstrate the calculations.

C Program to Find the Area and Perimeter of a Rectangle
C Programs Intermediate

C Program to Find the Area and Perimeter of a Rectangle

Understand how to find the area and perimeter of a rectangle using a simple C program. Includes full source code and sample output.

C Program to Swap Two Numbers Using Pointers
C Programs Intermediate

C Program to Swap Two Numbers Using Pointers

Explore how to swap two numbers in C using pointers with complete code and output. Understand the pointer logic behind swapping values.

C Program to Calculate Simple and Compound Interest
C Programs Intermediate

C Program to Calculate Simple and Compound Interest

Explore a C program that calculates both simple and compound interest. Dive into the code, see the output, and understand the algorithm step-by-step.