H
H
Hello America2016-08-21 18:09:30
C++ / C#
Hello America, 2016-08-21 18:09:30

Is it possible to write in Microsoft Visual Studio 2015 in C without C++?

A console program is required in plain C (C), can I write in Visual Studio? Is there any special meaning in the .cpp extensions before .c, since Visual Studio only generates .cpp? Or have I misunderstood something?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
maaGames, 2016-08-21
@websofter

1. It is the extension *.c that should be
2. In the project settings, you can set how to compile (default / C ++ / C)

F
Fat Lorrie, 2016-08-21
@Free_ze

How to create a project in Visual Studio in C and print the result to the console?

R
Rou1997, 2016-08-21
@Rou1997

It is possible, there is a difference during compilation, it is easy to check, for example, the bool type is not in C, and Visual Studio only generates C ++ projects because there is no point in limiting yourself to C.

R
res2001, 2016-08-21
@res2001

There is a corresponding parameter in the project settings: С/С++ -> Advanced -> Compile As (compiler parameters /TP or /TC).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question