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 gccVerification
Verify that GCC is properly installed:
gcc --versionWriting 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 helloRun the compiled executable:
./hello