aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_array2.in
blob: 0e5bcbfbc1d3b633b59679b54b95151412ab55ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
        #include <stdio.h>

        static const double grid[4][2] = {
         {-3/3.,-1/3.},{+1/3.,-3/3.},
         {-1/3.,+3/3.},{+3/3.,+1/3.}
        };

        int main() {
          for (int i = 0; i < 4; i++)
            printf("%d:%.2f,%.2f ", i, grid[i][0], grid[i][1]);
          printf("\n");
          return 0;
        }