以下正确定义一维数组的是()。
A. int a[5] = {0,1,2,3,4,5};
B. char a[] = {0,1,2,3,4,5};
C. char a={'A', 'B', 'C'};
D. int a[5]= "0123";
以下错误的定义语句是()。
A. int x[ ][3] = {{0},{1},{1,2,3}};
B. int x[4][3] = {1,2,3,1,2,3,1,2,3,1,2,3};
C. int x[ ][3] = {1,2,3};
D. int x[4][3] = {{1,2,3},{1,2,3},{1,2,3},{1,2,3}};
以下程序运行结果是()。#include void main(){char chA[10] = "abcdef",chB[10] = "AB\0c";strcpy(chA,chB);printf("%c",chA[3]);}
A. d
B. c
C. \0
D. 0