int buttons[0]=2;
That snippet does not make sense. You are defining an array that can hold 0 elements, and then using the wrong syntax to store data in the array, which wouldn't fit if you used the correct syntax.
int buttons[0]=2;
That snippet does not make sense. You are defining an array that can hold 0 elements, and then using the wrong syntax to store data in the array, which wouldn't fit if you used the correct syntax.