Skip to main content
Advertisement

C Language Installation and Environment Setup

C language requires a Compiler to convert your code into an executable file.

🪟 Windows (MSVC)

  1. Install Visual Studio(Community version is free).
  2. Choose the 'Desktop development with C++' workload during installation.

🍎 macOS (Clang)

  1. Open your terminal and type xcode-select --install.
  2. 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
  1. Install VS Code.
  2. Install the C/C++ Extension.
  3. After writing your code, you can configure build settings using Ctrl+Shift+B (Windows) or Cmd+Shift+B (Mac).
Advertisement