Posted By

f on 01/03/09


Tagged


Versions (?)

(1 ? f : g)()


 / Published in: C
 

1 ? f() : g() is equivalent to (1 ? f : g)()

  1. int f() { return 1; }
  2. int g() { return 2; }
  3. int main(void) { return (0 ? f : g)(); }

Report this snippet  

You need to login to post a comment.