Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TorKlingberg
· 10y ago · 0 comments
Sure, but I find it strange to use the ternary operator and discarding the value. It's not wrong, but I think most C programmers prefer a simple if statement.
Comments
[–]
dcvuob
10y ago
I was giving an replacement for the if statement presented above, where both expressions are on the same line.