Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

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)

  1. 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…
  2. 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 ----------…
  3. 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…
  4. 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 -…
  5. 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…
  6. 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…
  7. 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…
  8. 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 -…
  9. 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.…
  10. 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 -…
  11. 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 -…
  12. 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…
  13. 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…
  14. 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…
  15. 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…
  16. 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

PropertyValue
CompilerGCC 13.2.0
StandardC11
BackendWandbox Cloud
I/OConsole (stdin/stdout)

How to Use

  1. Click RUN CODE to compile and execute.
  2. For programs that read input, the compiler runs with the default values set inside the code.
  3. 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

FunctionPurpose
printf()Display formatted output
scanf()Read formatted input
%sString format specifier
%dInteger format specifier
%fFloat 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.