💾 Archived View for tilde.pink › ~telepta › scientia › c › intro-to-c.gmi captured on 2023-09-08 at 18:03:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

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

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.

Next: Hello, Gemini

Teletpa Home

Back