The C Programming Guide
Intro to C
C is a general-purpose programming language. It was designed in 1972 by Dennis Ritchie at Bell Labs, and is still widely used today.
Required Software
- Text Editor
- C/C++ Compiler
- Terminal Emulator
We recommend installing GCC (GNU Compiler Collection) to get started. Use whatever text editor you like best.
Installing a Compiler on Linux
First run the following command to see if GCC is installed:
gcc -v
If not, we've included a couple of examples.
Ubuntu:
sudo apt update sudo apt install build-essential
Fedora:
sudo yum update sudo yum install gcc
Arch:
sudo pacman -Syu sudo pacman -S gcc
Installing a Compiler on Mac
Install the Homebrew package manager, and run the following command:
brew install gcc
Installing a Compiler on Windows
Install MinGW from https://mingw.org
Conclusion
Okay, Now we are ready to write our first program in C.