Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/test/core/test_array2.c
4150 views
1
/*
2
* Copyright 2016 The Emscripten Authors. All rights reserved.
3
* Emscripten is available under two separate licenses, the MIT license and the
4
* University of Illinois/NCSA Open Source License. Both these licenses can be
5
* found in the LICENSE file.
6
*/
7
8
#include <stdio.h>
9
10
static const double grid[4][2] = {{-3 / 3., -1 / 3.},
11
{+1 / 3., -3 / 3.},
12
{-1 / 3., +3 / 3.},
13
{+3 / 3., +1 / 3.}};
14
15
int main() {
16
for (int i = 0; i < 4; i++)
17
printf("%d:%.2f,%.2f ", i, grid[i][0], grid[i][1]);
18
printf("\n");
19
return 0;
20
}
21
22