C C · Programs

C Programs

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

C Programs
9 articles · Advanced
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 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 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 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 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 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.