Hacker News new | past | comments | ask | show | jobs | submit login

Just for fun, on Windows, I get

  > cl.exe foo.c
  > foo
  4
  10372440
  5
  > cl.exe -O3 foo.c
  > foo
  4
  9025424
  9025424
I've seen stuff like this work on OS X, and segfault on Linux. Yay UB!



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

Search: