C Programming Laboratory

Comprehensive lab experiments covering fundamental to advanced C programming concepts

Each experiment includes aim, procedure, flowchart, program code, sample I/O, and real-world applications

← Back to Labs

Lab Experiments

Lab Exercise – 01

Experiment 01 – Basic I/O and Arithmetic

Learn input/output operations and basic arithmetic calculations in C

View Experiment→
Lab Exercise – 02

Experiment 02 – Largest of Three Numbers

Find the largest among three numbers using conditional statements

View Experiment→
Lab Exercise – 03

Experiment 03 – Factorial Calculation

Calculate factorial of a number using loops

View Experiment→
Lab Exercise – 04

Experiment 04 – Prime Number Check

Check if a number is prime using loops and conditions

View Experiment→
Lab Exercise – 05

Experiment 05 – Menu-Driven Calculator

Create a calculator with menu options using switch-case

View Experiment→
Lab Exercise – 06

Experiment 06 – Array Statistics

Calculate sum, average, maximum, and minimum of array elements

View Experiment→
Lab Exercise – 07

Experiment 07 – Matrix Operations

Perform addition, subtraction, and multiplication of matrices

View Experiment→
Lab Exercise – 08

Experiment 08 – String Operations

Implement string manipulation functions like length, copy, concatenate

View Experiment→
Lab Exercise – 09

Experiment 09 – Fibonacci Using Recursion

Generate Fibonacci series using recursive functions

View Experiment→
Lab Exercise – 10

Experiment 10 – Array Reverse Using Pointers

Reverse an array using pointer arithmetic

View Experiment→
Lab Exercise – 11

Experiment 11 – Structures – Student Record

Create and manage student records using structures

View Experiment→
Lab Exercise – 12

Experiment 12 – File Handling – Student Records

Store and retrieve student records from files

View Experiment→
Lab Exercise – 13

Experiment 13 – Search and Sort Algorithms

Implement linear search, binary search, and sorting algorithms

View Experiment→
Lab Exercise – 14

Experiment 14 – Dynamic Memory Allocation

Use malloc, calloc, realloc, and free for dynamic memory management

View Experiment→

About This Lab

This C Programming Laboratory section provides hands-on experiments designed to strengthen your understanding of C programming fundamentals. Each experiment is structured with:

  • Aim: Clear learning objectives for each experiment
  • Procedure: Step-by-step instructions to complete the task
  • Flowchart: Visual representation of program logic
  • Program Code: Complete, well-commented C source code
  • Sample Input/Output: Example test cases and expected results
  • Use Case: Real-world applications and relevance

🎯 Want to practice these concepts?

Try our C Programming Practice Problems with lab-style questions, sample I/O, hints, and scoring.

Practice C Programming