Compiler Error C2177
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2177.
constant too big
A constant value is too large for the variable type it is assigned.
The following sample generates C2177:
// C2177.cpp
int main() {
int a=18446744073709551616; // C2177
int b=18446744073709551615; // OK
}
Show: