Y
Hacker News
new
|
ask
|
show
|
jobs
by
protomolecule
727 days ago
By this logic the function below would be UB. It isn't.
void f() { int d; bool divide; std::cin >> d >> divide; std::cout << (divide ? 1/d : d); }