1 <span class="coMULTI">/* [index] = value */</span>
2 <span class="kw4">int</span> a<span class="br0">[</span>6<span class="br0">]</span> <span class="sy0">=</span> <span class="br0">{</span> <span class="br0">[</span>4<span class="br0">]</span> <span class="sy0">=</span> 29<span class="sy0">,</span> <span class="br0">[</span>2<span class="br0">]</span> <span class="sy0">=</span> 15 <span class="br0">}</span><span class="sy0">;</span> <span class="co1">// a = { 0, 0, 15, 0, 29, 0 };</span>
4 <span class="coMULTI">/* [i] = v1, v2, v3 <-> [i] = v1, [i + 1] = v2, [i + 2] = v3 */</span>
5 <span class="kw4">int</span> a<span class="br0">[</span>6<span class="br0">]</span> <span class="sy0">=</span> <span class="br0">{</span> <span class="br0">[</span>1<span class="br0">]</span> <span class="sy0">=</span> v1<span class="sy0">,</span> v2<span class="sy0">,</span> <span class="br0">[</span>4<span class="br0">]</span> <span class="sy0">=</span> v4 <span class="br0">}</span><span class="sy0">;</span> <span class="coMULTI">/* <-> */</span> <span class="kw4">int</span> a<span class="br0">[</span>6<span class="br0">]</span> <span class="sy0">=</span> <span class="br0">{</span> 0<span class="sy0">,</span> v1<span class="sy0">,</span> v2<span class="sy0">,</span> 0<span class="sy0">,</span> v4<span class="sy0">,</span> 0 <span class="br0">}</span><span class="sy0">;</span>
7 <span class="coMULTI">/* [i ... j] = v <-> [i] = v, [i + 1] = v, "...", [j] = v */</span>
8 <span class="kw4">int</span> a<span class="br0">[</span>6<span class="br0">]</span> <span class="sy0">=</span> <span class="br0">{</span> <span class="br0">[</span>1 ... 4<span class="br0">]</span> <span class="sy0">=</span> 1 <span class="br0">}</span><span class="sy0">;</span> <span class="coMULTI">/* <-> */</span> <span class="kw4">int</span> a<span class="br0">[</span><span class="nu0">6</span><span class="br0">]</span> <span class="sy0">=</span> <span class="br0">{</span> <span class="nu0">0</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="nu0">0</span> <span class="br0">}</span>
10 <span class="coMULTI">/* also works with chars */</span>
11 <span class="kw4">int</span> isWhitespace<span class="br0">[</span><span class="nu0">256</span><span class="br0">]</span> <span class="sy0">=</span> <span class="br0">{</span> <span class="br0">[</span><span class="st0">' '</span><span class="br0">]</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="br0">[</span><span class="st0">'<span class="es1">\t</span>'</span><span class="br0">]</span> <span class="sy0">=</span> <span class="nu0">1</span><span class="sy0">,</span> <span class="br0">[</span><span class="st0">'<span class="es1">\n</span>'</span><span class="br0">]</span> <span class="sy0">=</span> 1 <span class="br0">}</span><span class="sy0">;</span>