Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another fun one:

  struct { long unsigned a : 31; } t = { 1 };
What is t.a > -1? What about if a is instead a bit-field of width 32? (Assuming the same platform as in the quiz.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: