The information in this article applies to:
SYMPTOMSTwo similar assignment statements produce very different results when the application prints values assigned. For example:
CAUSEAny number with a leading "0" (zero) is interpreted to be an octal number (base 8). RESOLUTIONRemove the leading zero from the decimal number. MORE INFORMATIONAll character constants of the form "\<o>", "\<o><o>", "\<o><o><o>", (where <o> is a digit) and their string equivalents are specified in octal as well. For example, \33 and \033 each specify the ESC character (decimal 27, hexadecimal 1B). To specify a character constant in hexadecimal, use "\x<h><h>", where <h> is a hexadecimal digit. C does not provide a method to specify a decimal number in a character constant; you can use a decimal integer constant instead (for example, ch = 27). Additional query words:
Keywords : kbLangC kbVC100 kbVC150 kbVC151 kbVC152 kbVC200 kbVC210 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |