

int arr[3];   arr[0]  arr[1]  arr[2]    


test.cc:9:1: warning: array index 1 is past the end of the array (which contains 1 element) [Warraybounds] array[1] = b; ^ ~ test.cc:7:1: note: array 'array' declared here 
"test.cc", line 9.7: 15402909 (W) The subscript 1 is out of range. The only valid subscript is 0. 