Welcome to the repository containing solutions to 28 C Programming Assignments provided by Saurabh Shukla, popularly known as MySirG. These assignments are designed to strengthen your understanding of C programming concepts, ranging from basic to advanced levels.
This repository includes the solutions for the following 28 assignments:
- Basic Input/Output Programs
- Decision-Making and Looping Problems
- Arrays and Strings
- Pointers and Memory Management
- Functions
- Structures and Unions
- File Handling
- Dynamic Memory Allocation
- Recursion Problems
- Sorting and Searching Algorithms
- Mathematical Computations
- Miscellaneous Practice Questions
... (and so on up to 28 assignments). Each assignment folder contains multiple problem solutions.
- Clone the repository to your local machine using the command:
git clone https://github.com/Mad-Host/C-Programming.git
- Navigate to the folder of the assignment you're interested in.
- Open the
.c
files in your favorite code editor or IDE. - Compile and run the programs using a C compiler.
To compile and execute the programs, ensure you have a C compiler installed on your system. Common options include:
- GCC: Install via
gcc
on Linux/Mac or using MinGW on Windows. - Turbo C++: A classic IDE for C programming.
- Dev-C++: Lightweight and easy-to-use.
These programs were written and tested in a Windows environment. The #include <Windows.h>
header file is used in some programs, particularly for the Sleep()
function. If you are using a different operating system, you may encounter compatibility issues. In such cases, replace Sleep(milliseconds)
with an equivalent function, such as usleep(milliseconds * 1000)
(on POSIX systems) or remove it if not essential.
These assignments were created by Saurabh Shukla, a renowned educator and the creator of the MySirG platform. His work in making programming accessible and beginner-friendly is highly appreciated. You can find more of his tutorials and resources on:
Feel free to contribute to this repository by:
- Adding alternative solutions.
- Improving existing code.
- Reporting issues or bugs.
Simply fork the repository, make your changes, and submit a pull request.
This repository is open-source and free to use. If you use or reference these solutions, kindly give credit to Saurabh Shukla (MySirG) for the assignments.