Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Undefined behavior
//g++ 5.4.0 #include <iostream> #include <climits> int foo(int x) { return (x + 1) > x; } int main() { std::cout << ((INT_MAX + 1) > INT_MAX) << "\n"; std::cout << foo(INT_MAX) << "\n"; return 0; }
run
|
edit
|
history
|
help
0
single_digit
replace_if-30-Seconds-of-C++
ASHA
motores
kickstartd
Dar
replace-30-Seconds-of-C++
lambda capture
stack
asa