Can I compile pure C code in Visual Studio?

Shervan360 1,481 Reputation points


Can I compile pure C code in Visual Studio?
We can change the extension file to .c but I think the code compiles in Visual C++.
I want to compile C code in C compiler in Visual Studio, not in C++ compiler.

Thank you

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,553 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Petrus 【KIM】 456 Reputation points

    cl.exe is a tool that controls the Microsoft C++ (MSVC) C and C++ compilers and linker.

    0 comments No comments