Visit the MSYS2 website and follow the installer instructions. It manages the MinGW-w64 packages for you.
Option B: Microsoft Visual Studio (Best for Professional Devs) download c compiler
MinGW (Minimalist GNU for Windows) provides a complete Open Source programming toolset. It includes , which is the gold standard for C programming. Visit the MSYS2 website and follow the installer