Posts

Showing posts with the label GCC

C Language – Starting with “Hello, World!”

Image
1. Installing the C Compiler The most widely used compiler for developing C programs in a Linux environment is GCC (GNU Compiler Collection). While it can be installed individually, it is more efficient to install it via the build-essential package, which includes a collection of essential development tools. $ sudo apt update $ sudo apt install -y build-essential $ gcc --version gcc ... $ make --version GNU Make ... GCC (GNU Compiler Collection) : The standard C compiler in Linux environments. build-essential : A package that installs essential development tools at once, including GCC, g++ (C++ compiler), make (build automation tool), and libc6-dev (standard libraries and headers). 2. The First Program Since the example of printing “Hello, world!” was introduced in the 1978 book The C Programming Language [1] , this phrase has been widely used as the most basic introductory example in programming textbooks across almost all programming la...