Compiler Error C2041
illegal digit 'character' for base 'number'
The specified character is not a valid digit for the base (such as octal or hex).
The following sample generates C2041:
// C2041.cpp
int i = 081; // C2041 8 is not a base 8 digit
Possible resolution:
// C2041b.cpp
// compile with: /c
int j = 071;
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for