int a[]={1,2,3,4,5,}有错误吗5后面加逗号可以吗

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/31 05:56:47

int a[]={1,2,3,4,5,}有错误吗
5后面加逗号可以吗

不可以,去掉才算数组元素表达完整,否则不知道int数组有几个元素