// 18.ck : out of bounds ( fail-correct ) // declare int arrayint a[2]; // use as associative array4 => a["foo"]; // assignment4 => a[1]; // this should fail5 => a[2]; <<<"success">>>;// 18.ck : out of bounds ( fail-correct )
// declare int array
int a[2];
// use as associative array
4 => a["foo"];
// assignment
4 => a[1];
// this should fail
5 => a[2];
<<<"success">>>;