C Language Installation and Environment Setup
C language requires a Compiler to convert your code into an executable file.
🪟 Windows (MSVC)
- Install Visual Studio(Community version is free).
- Choose the 'Desktop development with C++' workload during installation.
🍎 macOS (Clang)
- Open your terminal and type
xcode-select --install. - After installation, verify with
gcc --version(This will typically install Clang).
🐧 Linux (GCC)
It is usually pre-installed, but if not, you can install it using your package manager.
- Ubuntu/Debian:
sudo apt install build-essential
⌨️ VS Code Configuration (Recommended)
- Install VS Code.
- Install the C/C++ Extension.
- After writing your code, you can configure build settings using
Ctrl+Shift+B(Windows) orCmd+Shift+B(Mac).