Project C in Visual Studio

Asked

Viewed 3,308 times

4

I’m learning C in college and will have to program in C.

I tested with Visual Studio 2013 and 2019 Community Edition I can create projects in C++, but I couldn’t find anything like a "Visual C".

Is there any form or extension that allows the creation of projects in pure C?

  • 2

    I’ve never tried to compile C in VS 2013, but I imagine it’s the same as previous versions. Have you ever tried other versions? I’ll see if I can write a reply but I’ll tell you that unless there’s something I don’t know, you need to create a C++ project yourself and compile the files .c and .h to indicate that it is C and not C++.

2 answers

3


Just create an empty Win32 project and add a font with extension "C". You can also force the compiler to only accept ANSI code as shown below :

Configuration Properties->Advanced->Compile As : Compile as C Code(/TC)

1

Yes, but you’ll have to use a C++ project to write in C:

C++ Project

This site gives a few more details on how to use a pure C structure.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.