TIDE
Languages

C

Installing C on Ubuntu in TIDE

C

C is a low-level, high-performance procedural programming language. It is widely used for operating systems, embedded systems, kernel development, and foundational software engineering.

Installation

To compile C programs on Ubuntu, install the GNU Compiler Collection (gcc) and standard build tools:

apt update
apt install -y build-essential gcc

Verification

Verify that GCC is properly installed:

gcc --version

Writing and Compiling Code

Create a C file named hello.c:

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

Compile the code with GCC:

gcc hello.c -o hello

Run the compiled executable:

./hello

Official Resources

On this page