C Programming Lab — Free Notes & Tutorial
Free C Programming Lab course on SikshaSarovar (Siksha Sarovar) — 16 structured lessons with notes, examples and a built-in online compiler. 100% free, no sign-up required.
This C Programming Lab course is part of Siksha Sarovar and is 100% free for students in India — no sign-up required to read. It contains 16 structured lessons with examples, and pairs with our free online compiler and AI tutor.
Course content (16 lessons)
- Lab 0: Compiler Setup & Compatibility Check — Program Statement Verify that the built-in C compiler (GCC via Wandbox) is ready to run C Programming Lab practicals. Compiler Info Property Value ---------- ------- Compiler GCC…
- Practical 1: Basic Input & Output (printf / scanf) — Program Statement Write a C program to accept a student's name, roll number, and marks, then display them in a formatted manner. Concepts Covered Function Purpose ----------…
- Practical 2: Arithmetic Operations on Two Numbers — Program Statement Write a C program to perform all basic arithmetic operations (addition, subtraction, multiplication, division, and modulus) on two integers. Operators Used…
- Practical 3: Largest of Three Numbers (if-else) — Program Statement Write a C program to find the largest of three numbers using if-else if-else statements. Concepts Covered - if statement - else if ladder - else clause -…
- Practical 4: Simple Calculator Using switch — Program Statement Write a C program to implement a simple calculator that performs addition, subtraction, multiplication, and division using the switch statement. Concepts Covered…
- Practical 5: Multiplication Table Using Loops — Program Statement Write a C program to print the multiplication table of a given number using for, while, and do-while loops. Concepts Covered Loop Syntax ------ -------- for…
- Practical 6: Star Pattern & Number Triangle (Nested Loops) — Program Statement Write a C program to print a right-angled star triangle and a number triangle using nested loops. Concepts Covered - Nested for loops - Loop control with…
- Practical 7: 1D Array — Sum, Average, Max & Min — Program Statement Write a C program to find the sum, average, maximum, and minimum of elements stored in a 1D array. Concepts Covered - Array declaration and initialization -…
- Practical 8: Bubble Sort on an Array — Program Statement Write a C program to sort an array of integers in ascending order using the Bubble Sort algorithm. Algorithm 1. Compare adjacent elements. 2. Swap if left right.…
- Practical 9: String Operations (without Library Functions) — Program Statement Write a C program to find the length of a string, copy one string to another, and concatenate two strings without using library functions . Concepts Covered -…
- Practical 10: Recursive Functions — Factorial & Fibonacci — Program Statement Write a C program to compute the factorial of a number and print the Fibonacci series using recursion. Concepts Covered - Function declaration and definition -…
- Practical 11: Pointers — Basics & Swap Using Pointers — Program Statement Write a C program to demonstrate pointer basics (address, dereference) and swap two numbers using pointers (pass by reference). Concepts Covered Concept Syntax…
- Practical 12: Student Record Using Structures — Program Statement Write a C program to store and display the records of 3 students using a structure containing name, roll number, and marks. Also find the student with the…
- Practical 13: File Handling — Write & Read a Text File — Program Statement Write a C program to write student data to a text file and then read and display it. Functions Used Function Purpose ---------- --------- fopen() Open a file…
- Practical 14: Dynamic Memory Allocation (malloc & free) — Program Statement Write a C program to dynamically allocate memory for an array of integers using malloc , read values, find the sum, and free the memory. Functions Used Function…
- Practical 15: Banking System — Mini Application — Program Statement Write a C program to implement a simple banking menu system with options to deposit, withdraw, and check balance, using functions and a loop. Concepts Applied -…
Lab 0: Compiler Setup & Compatibility Check
Program Statement
Verify that the built-in C compiler (GCC via Wandbox) is ready to run C Programming Lab practicals.
Compiler Info
| Property | Value |
|---|---|
| Compiler | GCC 13.2.0 |
| Standard | C11 |
| Backend | Wandbox Cloud |
| I/O | Console (stdin/stdout) |
How to Use
- Click RUN CODE to compile and execute.
- For programs that read input, the compiler runs with the default values set inside the code.
- You can edit the code directly in the editor.
CO Mapping
CO1
Practical 1: Basic Input & Output (printf / scanf)
Program Statement
Write a C program to accept a student's name, roll number, and marks, then display them in a formatted manner.
Concepts Covered
| Function | Purpose |
|---|---|
printf() | Display formatted output |
scanf() | Read formatted input |
%s | String format specifier |
%d | Integer format specifier |
%f | Float format specifier |
CO Mapping
CO1, CO2
Frequently asked questions
Is the C Programming Lab course really free?
Yes. The entire C Programming Lab course on Siksha Sarovar is free to read with no account required. You can optionally sign in with Google to save your progress.
Do I get a certificate for C Programming Lab?
Yes — finish the lessons and pass the quiz to earn a free, verifiable certificate you can share on LinkedIn or with recruiters.
Can I run code while learning?
Yes. The built-in online compiler runs C, C++, Python, Java, PHP, JavaScript, C# and SQL directly in your browser — no installation needed.