Share via


/J   (Default char Type is unsigned)

OverviewHow Do ICompiler Options

This option changes the default char type from signed char to unsigned char, and the char type is zero-extended when widened to an int type. If a char value is explicitly declared signed, the /J option does not affect it, and the value is sign-extended when widened to an int type.

The /J option defines _CHAR_UNSIGNED, which is used with #ifndef in the LIMITS.H file to define the range of the default char type.

Neither ANSI C nor C++ requires a specific implementation of the char type. This option is useful when you are working with character data that will eventually be translated into a language other than English.