Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Doesn't this code cause UB when sizeof (int*) != sizeof (void*)? To be fair, i don't know any system where this is the case. Commented Jul 30, 2021 at 20:16
  • @12431234123412341234123 it's UB on all systems (due to mismatched format specifier), but more likely to give unexpected output on systems as you describe Commented Feb 2, 2024 at 0:28