C Installation
To write and execute C programs, you need a C compiler.
Popular C Compilers
- GCC
- Clang
- MinGW
- Microsoft Visual C
Check GCC Installation
Open your terminal and run:
gcc --version
If GCC is installed, its version information will be displayed.
Compile a C Program
Suppose your file is called main.c.
gcc main.c -o main
Run it using:
./main