INFO: sizeof() Function Returns unsigned Instead of int (60332)
The information in this article applies to:
- Microsoft C for MS-DOS
- Microsoft C for OS/2
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.5
- Microsoft Visual C++ 2.0
- Microsoft Visual C++ 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q60332 SUMMARY
To comply with new ANSI specifications, the sizeof() operator in Microsoft
C versions 6.0 and later and QuickC versions 2.5 and later returns an
unsigned integer. In C version 5.1 and QuickC version 2.0, this function
returns a signed int.
Modification Type: | Major | Last Reviewed: | 12/11/2003 |
---|
Keywords: | kbinfo kbLangC KB60332 |
---|
|