想用for循环访问数组中的每一个元素,请问怎么实现呢?如何取得数组的长度
int allButton[]={1010,1011,1012,1013,1014};
for(int i=0; )
{
  int x=allButton[i];
}