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">// { 0, 0, 15, 0, 29, 0 };</span>
4 <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="co1">// { 0, v1, v2, 0, v4, 0 };</span>
6 <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="co1">// { 0, 1, 1, 1, 1, 0 }</span>
8 <span class="coMULTI">/* also works with chars */</span>
9 <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>