You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code has undefined behavior in C++, but is well-defined in C:
abs(LLONG_MIN);
This happens because in C++, abs is overloaded and dispatches to llabs,
whereas in C, LLONG_MIN yields zero when converted to int when calling int abs(int).
The following code has undefined behavior in C++, but is well-defined in C:
abs(LLONG_MIN);This happens because in C++,
absis overloaded and dispatches tollabs,whereas in C,
LLONG_MINyields zero when converted tointwhen callingint abs(int).