How to install MinGW-w64 v 10.0.0 (2022) and how to compile and run C/C++ on windows 10
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.
https://github.com/niXman/mingw-builds-binaries/releases
x86_64-12.2.0-release-posix-seh-ucrt-rt_v10-rev2.7z is the name of archive i used to install mingw-w64 on Windows 10
MingW-W64-builds
Platform Supported: Windows
GCC / Mingw-w64 Version: 12.2.0/10.0.0
Languages: C, C++, Fortran
Additional Software in Package Manager: 4 (gdb, libiconf, python, zlib)
Important Note: MinGW-w64 comes with variety of Pre-built toolchains and packages, so be careful in choosing the packages and all packages are not same.