title: Creating array of points in C and C++
body: <p>There are different ways to reach the same end but this is basically what I am trying to do:</p>
  
  <pre><code>typedef struct point_t {
      unsigned int x;
      unsigned int y
  } point_t;
  </code></pre>
  
  <p><code>point_t points[64] = { {23, 67}, {123, 9}, {55, 0} ... }</code></p>
  
  <p>I just want to create a constant array of xy coordinates and read them like this:</p>
  
  <pre><code>i = points[0].x
  j = points[0].y
  </code></pre>
  
  <p>Is this valid in C and C++?</p>