C C · Programs

C Programs

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

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 Display its own Source Code as Output
C Programs Advanced

C Program to Display its own Source Code as Output

Explore a C program that displays its own source code as output. See full code, understand the logic, and view the sample output.

C Program to Store Data in Structures Dynamically
C Programs Advanced

C Program to Store Data in Structures Dynamically

Learn how to dynamically store data in structures in C. Includes full code, step-by-step explanation, algorithm, and sample output.

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 Calculate Difference Between Two Time Periods
C Programs Advanced

C Program to Calculate Difference Between Two Time Periods

Explore a C program to calculate the difference between two time periods. Includes full code, detailed explanation, and sample output.

C Program to Add Two Complex Numbers by Passing Structure
C Programs Advanced

C Program to Add Two Complex Numbers by Passing Structure

This C program adds two complex numbers using structures. It includes full code, an explanation, and sample output to guide you effectively.

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 Find Largest Number Using Dynamic Memory Allocation
C Programs Advanced

C Program to Find Largest Number Using Dynamic Memory Allocation

Discover how to use dynamic memory allocation in C to find the largest number in a list. Full code and sample output included.

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 Multiply Two Matrices Using Functions
C Programs Advanced

C Program to Multiply Two Matrices Using Functions

Discover how to multiply two matrices in C by passing them to a function. Includes complete code and sample output for advanced matrix operations.

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 Calculate Standard Deviation — Full Code & Output
C Programs Advanced

C Program to Calculate Standard Deviation — Full Code & Output

Learn how to write a C program to calculate the standard deviation of a set of numbers. Includes full code and sample output.

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 Check if a Number is Sum of Two Primes
C Programs Advanced

C Program to Check if a Number is Sum of Two Primes

Check if a number can be expressed as the sum of two primes using this C program. Includes full code and sample output.

C Program to Check Prime or Armstrong Number Using User-defined Function
C Programs Advanced

C Program to Check Prime or Armstrong Number Using User-defined Function

Explore a C program that checks if a number is prime or an Armstrong number using user-defined functions. Full code and sample output included.

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 Characters from A to Z Using Loop
C Programs Beginner

C Program to Display Characters from A to Z Using Loop

Discover how to create a simple C program to print characters from A to Z using a loop. Full source code and sample output included.

C Program to Generate Multiplication Table with Example
C Programs Beginner

C Program to Generate Multiplication Table with Example

Create a C program that generates a multiplication table for any number, including full code and sample output.

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 Factorial of a Number
C Programs Beginner

C Program to Find Factorial of a Number

Discover how to write a C program to find the factorial of a number with full code and sample output. Perfect for beginners and includes step-by-step explanation.

C Program to Check Whether a Character is an Alphabet
C Programs Beginner

C Program to Check Whether a Character is an Alphabet

Discover how a C program determines if a character is an alphabet with complete code and output. Learn the steps involved in this simple checking task.

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 Find the Size of int, float, double and char
C Programs Beginner

C Program to Find the Size of int, float, double and char

Discover how to use C to find the size of int, float, double, and char data types with full code and sample output.

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 Compute Quotient and Remainder Easily
C Programs Beginner

C Program to Compute Quotient and Remainder Easily

Discover how to write a C program to compute quotient and remainder. Includes full code, explanation, and sample output for better understanding.

C Program to Find ASCII Value of a Character
C Programs Beginner

C Program to Find ASCII Value of a Character

Discover how to find the ASCII value of a character using a simple C program. Includes full code and sample output for beginners.

C Program to Add Two Integers with Explanation and Output
C Programs Beginner

C Program to Add Two Integers with Explanation and Output

Create a simple C program to add two integers, including full code, sample output, and a beginner-friendly explanation.

C Program to Multiply Two Floating-Point Numbers
C Programs Beginner

C Program to Multiply Two Floating-Point Numbers

Discover how to multiply two floating-point numbers in C, complete with code and sample output. Ideal for beginners learning C programming.

C Program to Print an Integer Entered by the User
C Programs Beginner

C Program to Print an Integer Entered by the User

Discover how to write a C program that takes an integer input from a user and prints it back. Includes full code and sample output.

C Program to Write Hello World - Full Code and Output
C Programs Beginner

C Program to Write Hello World - Full Code and Output

Discover how to write a simple C program to display 'Hello, World!'. Includes complete code and sample output for beginners.

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.