/J - Change Default char Type

This option changes the default char type from signed to unsigned. This option is useful when you are working with character data that you intend to localize. If a char value is explicitly declared signed, the /J option does not affect it, and the value is sign extended when widened to int type. With the /J option, the char type is zero extended when widened to an int type.

When you specify /J, the compiler automatically defines the identifier _CHAR_UNSIGNED, which is used with #ifndef in the LIMITS.H include file to define the range of the default char type.

Neither ANSI C nor C++ requires a specific implementation of the char type.

See Also

About Microprocessor Compilers | ARM Guide | Hitachi Guide | MIPS Guide

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.