Skip to content

This repository is designed to help beginners learn C programming through code examples, projects, and detailed explanations.

License

Notifications You must be signed in to change notification settings

asem-hamid/learn-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn C

learncbanner

Welcome to the Learn C repository! This repository is designed to help beginners learn C programming through code examples, projects, and detailed explanations. Additionally, contributions from the community are highly encouraged to enhance and expand the content.

Table of Contents

Introduction

This repository contains a collection of C programming tutorials, examples, and projects. It is designed to be a comprehensive resource for anyone looking to learn C from scratch or to deepen their understanding of the language.

Hi, I'm Asem Hamid, the creator of this repository. My goal is to share my learning journey in C programming with the community in a way that is easy to understand and beneficial to learners of all levels. I hope you find this repository helpful, and I look forward to seeing your contributions to improve it.

Features

  • Beginner-Friendly: Simple and easy-to-follow code examples.
  • Comprehensive Coverage: Topics ranging from basic syntax to advanced concepts.
  • Interactive Projects: Hands-on projects like a Snake-Ladder Game to reinforce learning.
  • Community Contributions: Open for contributions to continuously improve and expand the content.

Getting Started

To get started with the code and content in this repository, follow these steps:

  1. Install and set up prerequisites : vs-code , c compiler , git

  2. Clone the Repository:

git clone https://github.com/asem-hamid/learn-c.git

cd learn-c

cd content
  1. Explore the Code: Browse through the folders and files to find tutorials, examples, and projects.

  2. Run the Code: Compile and run the examples using a C compiler

gcc filename.c -o filename

./filename

Usage

  • Compile and Run Examples: Navigate to the desired folder and compile the code using a C compiler.
  • Modify and Experiment: Feel free to modify the code to see how changes affect the output.
  • Learn and Understand: Read the comments and documentation within the code to understand each concept.

Chapter List

Basics

  • 01-basic Introduction to basic concepts, syntax, and structure of C programs.
  • 02-operators: Detailed explanations and examples of different operators in C.
  • 03-conditional: Control flow statements like if-else and switch-case.
  • 04-loop: Looping constructs including for, while, and do-while loops.
  • 05-function: Functions, their declarations, definitions, and usage.

Intermediate

  • 06-recursion: Recursive functions and their applications.
  • 07-array: Arrays, both single-dimensional and multi-dimensional.
  • 08-pointer: Pointers, pointer arithmetic, and pointers to arrays and functions.
  • 09-string: String operations and functions.
  • 10-structures: User-defined data types using structures.

Advanced

  • 11-unions: Unions and their usage.

  • 12-DMA: Dynamic Memory Allocation using malloc, calloc, realloc, and free.

  • 13-file-handling: File input and output operations.

  • extra: Additional topics and advanced concepts.

Projects :

Contributing

For detailed guidelines, check the CONTRIBUTING.md .

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This repository is designed to help beginners learn C programming through code examples, projects, and detailed explanations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages