Welcome to the C Practices repository! This repository is a collection of my C programming exercises and code samples that help in understanding and practicing the core concepts of the C programming language.
This repository contains various C programming exercises covering fundamental concepts such as:
- Basic syntax and operations
- Conditional statements and loops
- Functions and recursion
- Pointers and memory management
- Structures and file handling
basic_syntax.c
: A simple program to demonstrate variable declaration and output.
conditionals.c
: A program that uses if-else statements to determine grades based on scores.loops.c
: A demonstration of using for and while loops to print numbers.
functions.c
: A program that showcases function creation and usage, including recursion.
pointers.c
: An example that illustrates pointer usage, including memory addresses and pointer arithmetic.
structures.c
: A program that defines and uses structures to store student information.
file_handling.c
: An example of reading from and writing to files, demonstrating basic file operations.
To get started with this repository, you can clone it to your local machine and run the code samples using a C compiler.
To compile and run the C code in this repository, you need:
- A C compiler (e.g., GCC)
- Familiarity with C programming basics
If you don't have GCC installed, you can install it by following the instructions here: GCC Installation Guide
- Clone this repository to your local machine:
git clone https://github.com/S-Zubayer/C-practices.git
- Navigate to the directory:
cd C-practices
- Navigate to the folder where your practice files are located.
- Compile the code with GCC:
gcc -o output filename.c
- Run the compiled code:
./output
Feel free to fork this repository, add your own examples or improvements, and submit a pull request. Contributions are always welcome!
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy coding in C!