What you want is called the "Windows SDK", which contains everything you need to build applications on Windows, except the IDE (Visual Studio).
It comes with all necessary libraries, header files, a compiler, nmake et cetera, and a handy shortcut for a preconfigured cmd.exe that puts all of these tools in your PATH. If you know what you are doing, this is what you want to use.
What version of the SDK you want depends on the system you are compiling on, but you will find all of them on the Microsoft website. For Windows 10 for example, the SDK can be found here: https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk
Be aware, though, that the windows' compiler cl.exe can be a bit tricky at times, and nmake is not what you expect when you only learned GNUmake. If all you want is to compile on Windows, without having to drag 20+ Gigabytes of IDE around, then the SDK is an option to consider.
(We are using virtual machines with a preinstalled Windows SDK quite successfully in lectures and exercises.)
As of Windows 8 the SDK no longer contains the build tools for C++ based applications. These are now only contained in a Visual Studio installation.
Answer from Andreas Grapentin on Stack OverflowHow to download and install Microsoft's Visual Studio C/C++ compiler without Visual Studio - Stack Overflow
Where can I download C programming language?
how do i download c++? is there an independent platform, or is there anything suggested?
Can you download C only without C++ coming with it?
What is MinGW?
Why does Dev-C++ matter?
Is Dev free?
Videos
What you want is called the "Windows SDK", which contains everything you need to build applications on Windows, except the IDE (Visual Studio).
It comes with all necessary libraries, header files, a compiler, nmake et cetera, and a handy shortcut for a preconfigured cmd.exe that puts all of these tools in your PATH. If you know what you are doing, this is what you want to use.
What version of the SDK you want depends on the system you are compiling on, but you will find all of them on the Microsoft website. For Windows 10 for example, the SDK can be found here: https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk
Be aware, though, that the windows' compiler cl.exe can be a bit tricky at times, and nmake is not what you expect when you only learned GNUmake. If all you want is to compile on Windows, without having to drag 20+ Gigabytes of IDE around, then the SDK is an option to consider.
(We are using virtual machines with a preinstalled Windows SDK quite successfully in lectures and exercises.)
As of Windows 8 the SDK no longer contains the build tools for C++ based applications. These are now only contained in a Visual Studio installation.
You can download the compiler and related stuff as part of the Visual Studio Build Tools. The 2017 version is here:
https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017
The title says it all. When I search "c programming language +download", there are multiple search results with all with varied links that directs you to a certain website. And I'm uncertain whether or not they're trustworthy links or not.