选择题

针对数组定义intdata[10];,下列表述中错误的是

【正确答案】 D
【答案解析】

数组元素的下标是从0到<数组长度>-1,所以数组data的首元素是data[0],尾元素是data[9]。其他选项的描述都是正确的。