Practical Lab RepositoryNBC 103 Lab Manual

Problem Solving Using C Practical Experiments

All 9 official experiments with algorithm steps, tested working source code, sample inputs & outputs, and 1-click "Open in IDE".

Exp #1c

Simple Interest & Temperature Conversion

To write a C program to calculate Simple Interest and convert temperatures between Fahrenheit and Celsius.

Exp #2c

Largest of Three Numbers & Leap Year Checker

To write a C program to find the largest of three numbers using nested if-else and verify whether a year is a Leap Year.

Exp #3c

Menu-Driven Arithmetic Calculator

To implement a menu-driven calculator using switch-case for basic arithmetic operations (+, -, *, /).

Exp #4c

Fibonacci Sequence & Prime Number Checker

To generate N terms of the Fibonacci sequence and determine if a number is Prime using loop constructs.

Exp #7c

Binary Search on a Sorted Array

To implement Binary Search on an array of N sorted integers with O(log N) complexity.

Exp #8c

2D Matrix Addition & Matrix Multiplication

To write a C program to perform Matrix Addition and 2D Matrix Multiplication.

Exp #10c

Swapping Two Numbers using Pointers (Call by Reference)

To demonstrate Call by Reference in C by swapping two integers using pointers.

Exp #11c

Student Record Management with Array of Structures

To create a student record system storing Roll No, Name, Marks, and Percentage using struct.

Exp #12c

Dynamic Memory Allocation (malloc & free)

To allocate heap memory dynamically using malloc(), compute array statistics, and deallocate with free().