Y
Hacker News
new
|
ask
|
show
|
jobs
by
messe
2419 days ago
The second conditional is unneeded as the 0 will only be returned if c evaluates to 0, so it can equally well be written
int a = b ?: c;