Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return (condition ? x : y);
- if (a == b && c == d) // AVOID!
- if ((a == b) && (c == d)) // RIGHT
- return (someBoolean ? x : y);
- return ((x > y) ? x : y);
- int foo = (bar > baz) ? bar : baz;
- int foo = (someBoolean) ? bar : baz;
- int foo = (bar > baz) ? bar : baz;
- int foo = (someBoolean) ? bar : baz;
- int foo = bar > baz ? bar : baz;
Add Comment
Please, Sign In to add comment