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*

11
  • 30
    sizeof(*"327") is sizeof(char) since * dereferences the first char of your literal string. just try sizeof(char *) Commented Oct 12, 2017 at 8:51
  • 8
    I also recommend you read e.g. this printf (and family) reference, because "%lu" is the wrong format for sizeof arguments. Commented Oct 12, 2017 at 8:58
  • 8
    Sidenote: sizeof is no function that could be called. Commented Oct 12, 2017 at 10:34
  • 7
    you can't call sizeof Commented Oct 12, 2017 at 15:20
  • 4
    You may have been thinking of sizeof(&"327"). Commented Oct 12, 2017 at 16:49