INFO: Line Continuation Evaluated Before Inline Comment (62097)
The information in this article applies to:
- Microsoft C for MS-DOS
- Microsoft C for OS/2
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 5.0
- Microsoft Visual C++, 32-bit Editions 6.0
This article was previously published under Q62097 SUMMARY
To maintain ANSI compliance, the above C versions evaluate line
continuation characters "\" before inline comment tokens "//". This is a
change from C version 5.1 behavior, which ignores line continuation
characters within inline comments. This order of evaluation may results in
the following error in the sample below:
error C2065: 'INT2' : undeclared identifier
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbcode kbCompiler kbinfo KB62097 |
---|
|