Walkthrough: Compile a C program on the command line ...
docs.microsoft.com › en-us › cppDec 09, 2021 · The C and C++ languages are similar, but not the same. The Microsoft C/C++ compiler (MSVC) uses a basic rule to determine which language to use when it compiles your code. By default, the MSVC compiler treats all files that end in .c as C source code, and all files that end in .cpp as C++ source code. To force the compiler to treat all files as ...