单项选择题

要定义一维int型数组art,并使其各元素具有初值1,2,0,0,0,正确的定义语句是()。

A、int art[5]={1,2};
B、int art[]={1,2};
C、int art[5]={1,2,0,0,0};
D、int art[]={1,2,0,0,0};
相关考题