Zc

Lets you specify ANSI C standard conformance for certain language features.

IDE Equivalent

Windows: C/C++ > Language > Treat wchar_t as Built-in Type

Linux: None

Mac OS: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux and Mac OS: None
Windows:    /Zc:arg[, arg]

Arguments

arg      Is the language feature for which you want standard conformance. Possible values are:
  forScope - Enforce standard behavior for initializers of for loops.
  wchar_t - Specify that wchar_t is a native data type.

Default

OFF      /Zc:forScope, wchar_t is disabled if /Qvc8 is not specified.
ON      /Zc:forScope, wchar_t is enabled when /Qvc8 is specified.

Description

This option lets you specify ANSI C standard conformance for certain language features when you also specify /Ze.

Alternate Options

None

See Also