Skip to content

This repository contains a comprehensive collection of C, C++, and Operating Systems (OS) programs, organized by semester and topic. It is designed as a reference and practice resource for students learning programming fundamentals, data structures, algorithms, and OS concepts.

Notifications You must be signed in to change notification settings

TridentifyIshaan/C_CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header

💫 About The Repository

This repository contains a comprehensive collection of C, C++, and Operating Systems (OS) programs, organized by semester and topic. It is designed as a reference and practice resource for students learning programming fundamentals, data structures, algorithms, and OS concepts. Each folder contains well-documented code samples, notes, and project files to support hands-on learning and revision.

  • Languages Covered: C, C++
  • Topics: Programming basics, patterns, operators, loops, functions, arrays, searching, sorting, OS algorithms, and more.
  • Intended Audience: Students and learners preparing for university exams, coding interviews, or anyone looking to strengthen their programming skills.

📁 Repository Structure

  • 1st Sem C/
    C programming assignments and practice problems for first semester, covering basics to advanced topics.

  • 3rd Sem CPP/
    C++ programs organized by topic, including basics, patterns, operators, loops, functions, arrays, searching, sorting, and more.

  • 4th Sem OS/
    Operating Systems algorithms and programs, such as Banker's Algorithm, FCFS, and other scheduling algorithms.

  • .vscode/
    Editor configuration files for Visual Studio Code.


🗂️ Index

1st Sem C

  • 1.c ... 10A.c, 10B.c, ... : Individual C programs for various assignments and concepts.
  • Project File.docx / Project File.pdf: Project documentation.

3rd Sem CPP

01 Basics

  • Hello World
  • Datatypes
  • Datatype Size
  • ASCII values
  • Unsigned Integer
  • Relational Operations
  • User Input
  • Positive, Negative or Zero
  • Taking input in a single line for multiple variables
  • Which number is greater?
  • Lowercase & Uppercase Letters or Numbers?
  • Print n numbers
  • Sum of n numbers
  • Sum of even numbers
  • Fahrenheit to Celsius
  • Prime or Not?

02 Patterns

  • Pattern printing programs

03 Binary Operators

  • Programs demonstrating binary operations

04 For Loop

  • Looping constructs and examples

05 Scopes of Variables

  • Variable scope and lifetime

06 Number System

  • Number system conversions and operations

07 Switch Case & Functions

  • Switch case usage and function examples

08 Arrays, Searching, Sorting

  • Array manipulation, searching, and sorting algorithms

4th Sem OS

  • Banker's Algorithm
  • FCFS (First Come First Serve)
  • SJF Preemptive

🚀 How to Run the Code

  1. Install Visual Studio Code
  2. Recommended: Install the "Code Runner" extension for easy code execution.
  3. Open the folder in VS Code.
  4. To run a code file:
    • Open the file you want to run.
    • Press Ctrl + Alt + N (if using Code Runner).
    • Or use the integrated terminal to compile and run manually:
      • For C: gcc filename.c -o output && ./output
      • For C++: g++ filename.cpp -o output && ./output

📚 References


📝 Notes

  • Each code file contains inline documentation and notes for better understanding.
  • The repository is won't get any further updates I feel.
  • Contributions and suggestions are welcome though!

About

This repository contains a comprehensive collection of C, C++, and Operating Systems (OS) programs, organized by semester and topic. It is designed as a reference and practice resource for students learning programming fundamentals, data structures, algorithms, and OS concepts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published