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*

3
  • 1
    But how is this an answer to the question? Commented Nov 23, 2011 at 12:15
  • 5
    @phresnel: This is just to make it clear that sizeof is "weird" and is not subject to the rules of normal functions. I edited the post anyway to remove the possible confusion with normal runtime operators like (+) and (-) Commented Nov 23, 2011 at 12:25
  • 2
    The sizeof operator is not a compile-time operator, you only have to give it a VLA to figure this out. Commented Jan 17, 2020 at 9:11