Welcome to DSINC - Data Structures in C! This repository contains implementations of various data structures in the C programming language.
Follow these steps to compile and run a C file:
-
Install a C Compiler
Ensure you have a C compiler installed, such asgcc. You can install it using your package manager:sudo apt-get install gcc # For Debian/Ubuntu sudo dnf install gcc # For Fedora brew install gcc # For macOS
-
Compile the C File
Use thegcccommand to compile your C file. Replacefilename.cwith the name of your C file:gcc filename.c -o output
-
Run the Compiled Program
Execute the compiled program by running:./output
-
Example
If you have a file namedexample.c, you can run it as follows:gcc example.c -o example ./example
Feel free to explore the repository and contribute!