Welcome to my C Programming Repository! This repository houses all the projects, lab exercises, and programs I’ve completed throughout my college coursework. Here, you can explore various C programming topics, from basic syntax to advanced concepts like file handling, recursion, and more.
├── Final_Project
│ ├── Bus_Reservation
│ │ ├── a.out
│ │ ├── buses.txt
│ │ ├── main.c
│ │ └── users.txt
│ ├── Calculator
│ │ └── index.c
│ ├── Conversion_System
│ │ └── index.c
│ └── Library_Management
│ ├── library.c
│ ├── library.h
│ ├── library.h.gch
│ └── main.c
├── Lab Reports
│ ├── Lab_Exercise_1
│ │ └── Basics_Syntax_Structure
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── Question_5.c
│ │ └── Question_6.c
│ ├── Lab_Exercise_2
│ │ └── Data_Types, Operators and Expressions in C
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── Question_5.c
│ │ ├── Question_6.c
│ │ └── Question_7.c
│ ├── Lab_Exercise_3
│ │ └── Formatted and unFormatted I
│ │ └── O in C with preprocessor directives
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ └── Question_5.c
│ ├── Lab_Exercise_4
│ │ └── Decision_Statement
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── Question_5.c
│ │ └── Question_6.c
│ ├── Lab_Exercise_5
│ │ └── function programming, its types, and function-call
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── Question_5.c
│ │ ├── Question_6.c
│ │ └── Question_7.c
│ ├── Lab_Exercise_6
│ │ └── Array_Pointers
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── Question_5.c
│ │ ├── Question_6.c
│ │ ├── Question_7.c
│ │ ├── Question_8.c
│ │ └── Question_9.c
│ ├── Lab_Exercise_7
│ │ └── Structures_in_C
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── Question_5.c
│ │ ├── Question_6.c
│ │ ├── Question_7.c
│ │ └── a.out
│ ├── Lab_Exercise_8
│ │ └── File_Handling_in_C
│ │ ├── Question_1.c
│ │ ├── Question_2.c
│ │ ├── Question_3.c
│ │ ├── Question_4.c
│ │ ├── a.out
│ │ ├── filec.txt
│ │ ├── person.txt
│ │ └── stringc.txt
│ └── Lab_Exercise_9
│ └── Graphics_in_C
├── Readme.md
└── Submission_Report
├── Report_1
│ └── report.c
├── Report_2
│ └── report.c
├── Report_3
│ └── report.c
├── Report_4
│ └── report.c
├── Report_5
│ └── report.c
├── Report_6
│ ├── a.out
│ └── report.c
├── Report_7
│ ├── a.out
│ └── report.c
├── Report_8
│ ├── a.out
│ ├── report.c
│ └── std.txt
└── Report_9
├── main
├── main.cpp
├── report_no__1.c
├── report_no__2.c
├── report_no__3.c
├── report_no__4.c
└── report_no__5.c
- Total Directories: 36
- Total Files: 86
- Lab Exercises Covered: 9 (with more to come)
- Programming Topics: Basic Syntax, Data Types, Operators, Expressions, Decision Statements, Functions, Arrays, Pointers, Structures, File Handling, and more.
-
Clone the Repository:
git clone https://github.com/Udesh-Regmi/C_Programming_College_Files
-
Navigate to the Desired Lab Folder: Use
cdto go into the exercise folder:cd Lab_Exercise_1 -
Compile and Run C Programs:
- Compile using
gcc:gcc filename.c -o outputname
- Run the compiled program:
./outputname
✅ Tip: Replace
filename.candoutputnamewith your desired C source file and output executable name. - Compile using
- Focuses on fundamental syntax, operators, and control structures in C.
- Key topics: Variables, Data Types, Functions, Loops, Conditionals.
- Explores various data types and operators.
- Key topics:
int,float,char,double,&&,||,++,--, etc.
- Deals with input/output operations and preprocessor directives in C.
- Key topics:
printf,scanf,#define,#include.
- Covers decision-making constructs like
if,else,switch. - Key topics: Conditional Statements, Nested Conditions.
- Focuses on functions, including function types and function calls.
- Key topics: Function Declaration, Definition, Call, Recursion.
- Covers the concept of arrays and pointers in C.
- Key topics: Array Manipulation, Pointer Arithmetic, Pointers to Arrays.
- Introduces structures for grouping related data types.
- Key topics: Defining Structures, Accessing Structure Members, Pointers to Structures.
- Explores how to handle files in C using
fopen,fread,fwrite, andfclose. - Key topics: File Reading/Writing, File Modes, Text Files vs Binary Files.
- Programs utilizing graphics libraries for creating visual applications.
- Lab Exercises Completed: 9/9 (100% completed)
- Total C Programs: 70+
- Upcoming Topics: Recursion, Dynamic Memory Management, Advanced File Handling, and more.
If you'd like to contribute to this repository (or if you're working on the same course), feel free to fork and submit a pull request with your changes or improvements!
- 📖 C Programming Documentation - Official documentation for C programming.
- 🌐 GeeksforGeeks - C Programming - Extensive tutorials and examples.
- 🎓 Learn C Programming - Interactive C programming lessons.
This repository is dedicated to organizing and showcasing my C programming learning journey through college. It serves as both a learning tool and a place to document my progress.
⭐ If you find this repository helpful give it a star. ⭐