This repository contains simple C programs demonstrating various fundamental concepts of the C programming language. These programs are designed to help beginners understand file handling, basic I/O operations, and mathematical computations.
Author:@DProvat
www.arprovat.com
- file_io.c: Demonstrates file reading and writing in C.
- temp_conversion.c: Converts temperature between Fahrenheit and Celsius.
- basic_calculator_withSwitch.c: A simple calculator using switch-case statements.
- src/: Contains the main C source code files.
- executables/: Holds the compiled
.exe
files for quick preview. - docs/: Documentation and additional resources.
Users can browse the executables/
folder to run pre-compiled versions of the programs without needing to compile them manually.
Each program has a corresponding .md file inside the docs/ folder explaining its functionality, usage, and code breakdown.
Language: C Programming
-
Clone the repository to your local machine.
-
Compile and run the C programs using a C compiler (like
gcc
).Example command:
gcc file_io.c -o file_io ./file_io
-
For some programs that involve file operations, ensure that the necessary files (
data.txt
, etc.) are in place.
If you just want to test the programs without compiling, you can find the executable files inside the executables/
folder.
Contributions are welcome! If you'd like to improve the functionality, fix bugs, or add new features, feel free to fork the repository and submit a pull request.
If you encounter any issues or have suggestions for improvement, please open an issue on GitHub.