Hacker News new | ask | show | jobs
by 120bits 1911 days ago
"sizeof((void )1)"

"- this will break the minds of everybody who ever sees that expression."

It indeed broke my mind!

1 comments

I am sure you meant

  sizeof((void*)1)
Given the italics, it wouldn’t surprise me if the original was in fact:

sizeof(*(void*)1)