create static array in c code example Example 1: c static array static int samples[ARRAY_LEN]; Example 2: create static array in c int a[10] = {0, 1, 2};