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*

4
  • g++ -pedantic doesn't complain. Commented Nov 6, 2010 at 19:36
  • 1
    ... although it doesn't complain about const int x = x; either. Commented Nov 6, 2010 at 19:43
  • I would think that it's correct(points[0] refers to a valid object by that time), but I wouldn't know for sure. The grammar checks out, obviously, and flipping through Stroustroup just says "An array can be initialized by a list of values. points[0] is a value, so it seems correct. Commented Nov 6, 2010 at 19:49
  • @Dasuraga: No, points[0] does not refer to a valid object "by that time". points[0] has an indeterminate value. Commented Sep 11, 2011 at 16:21