Th1sD0t
Th1sD0t

Reputation: 1119

Visual Studio 2015 - Use C90 standard?

Is there a possibility to use the C90 compiler in Viual Studio 2015 (so new features are not available) ?

Background: In study we have to learn C using the C90 standard.

Upvotes: 0

Views: 1415

Answers (1)

Grzegorz Szpetkowski
Grzegorz Szpetkowski

Reputation: 37924

No, there is no such facility in VS to disable certain C99 features, these are inherent part of "C mode". The Update 3 introduced /std switch, but it is only suited for C++.

You could validate the code against C90 after writing it in VS. For instance, you could use gcc.godbolt online compiler passing following options:

-x c -std=c90 -pedantic -Wall

Upvotes: 1

Related Questions