Skip to content

3riy/C-Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💻 C Language Overview

C Basics

C is a powerful, general-purpose programming language that provides a foundation for many modern languages. Known for its efficiency and control, C is commonly used in system programming, embedded development, and operating systems.

This repository includes structured C programs organized by concept, making it ideal for learning or quick reference.

🚀 Real-World Applications

Due to its ability to directly interact with hardware and memory, C is the backbone of modern computing. Here are its primary applications:

  • Operating Systems: C is the language of choice for writing OS kernels (including Linux, Unix, and Windows) because it provides low-level access to memory and efficient hardware addressing.
  • Embedded Systems: From microwave ovens to Mars rovers, C is used in microcontrollers and IoT devices where resources (RAM/CPU) are limited and performance is critical.
  • Database Systems: High-performance databases like MySQL, PostgreSQL, and Oracle are written in C to ensure rapid data retrieval and transaction handling.
  • Compilers and Interpreters: Many modern languages are actually built on top of C. For example, the standard Python implementation (CPython) is written in C.
  • Graphics and Gaming: C (and its successor C++) is used in game engines and high-performance graphics libraries (like OpenGL) where rendering speed is paramount.

📁 Sub-folders


🧩 Steps to Clone and Run this Repository

  1. Run the git clone command to make a copy of this repository on your local machine:

    git clone [https://github.com/rh3nium/C](https://github.com/rh3nium/C)
  2. Navigate to the folder:

    cd C
  3. Compile any C file using GCC:

    gcc filename.c -o output
  4. Run the program:

    ./output

⚙️ Setting up a C Compiler

To compile and run C programs on your computer, you need a C compiler such as GCC or Clang.

  1. Visit the GCC official installation page.

  2. Install GCC via your package manager or IDE (e.g., Code::Blocks, Visual Studio Code).

  3. After installation, verify by running this command in Terminal:

    gcc --version
  4. Now you are ready to write, compile, and execute C programs.