How to install MinGW-w64 (LLVM-MinGW toolchain) and how to compile and run C/C++ on windows 10
LLVM-MinGW is a toolchain built with Clang, LLD, libc++, targeting i686, x86_64, arm and aarch64 (ARM64), with releases both for running as a cross compiler from Linux and for running on Windows. It supports Address Sanitizer, Undefined Behaviour Sanitizer, and generating debug info in PDB format.
https://github.com/mstorsjo/llvm-mingw/releases
llvm-mingw-20220906-ucrt-x86_64.zip is the name of archive i used to install mingw-w64 on Windows 10
LLVM-MinGW 20220906
Platform Supported: Windows, Linux
GCC / Mingw-w64 Version: LLVM 15.0.0/trunk
Languages: C, C++
Additional Software in Package Manager: make, Python
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.