Skip to content

A collection of beginner-friendly C programs that illustrate core programming concepts, created during course practice to strengthen problem-solving and coding skills.

Notifications You must be signed in to change notification settings

syedabdullahbukhari77/c-programming-fundamentals

Repository files navigation

C Language Programs

This folder contains step-by-step C programs, starting from the basics and moving toward intermediate concepts.
Each file is numbered for easy navigation, so learners can follow the sequence like a tutorial series.


📂 Program List

  1. 01_hello_world.c
    Prints "Hello, World!" to the screen. The first program for every C learner.

  2. 02_variables.c
    Shows how to declare variables (int, float, char) and print their values using printf().

  3. 03_data_types.c
    Demonstrates different data types in C (int, float, double, char) and their storage sizes.

  4. 04_constants.c
    Introduction to constants (const keyword) and why immutability matters.

  5. 05_operators.c
    Examples of arithmetic, assignment, comparison, and logical operators.

  6. 06_booleans.c
    Demonstrates boolean logic in C using _Bool or <stdbool.h>.

  7. 07_if_else_loops.c
    Decision making with if, else if, and else.

  8. 08_while_loops.c
    Shows the use of while loops for repeated execution based on conditions.

  9. 09_for_loops.c
    Demonstrates for loops with counters and iterations.

  10. 10_arrays.c
    Introduction to arrays: declaring, initializing, and accessing elements.

  11. 11_user_input.c
    Using scanf() to take input from the user.

  12. 12_switches.c
    Control flow using the switch statement.


⚡ How to Compile & Run

Using GCC:

gcc 01_hello_world.c -o hello
./hello


## How to Compile & Run
Using GCC:
```bash
gcc 01_hello_world.c -o hello
./hello

Windows (Dev-C++ / TDM-GCC):

gcc 01_hello_world.c -o hello.exe
hello.exe```

About

A collection of beginner-friendly C programs that illustrate core programming concepts, created during course practice to strengthen problem-solving and coding skills.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages