不能正确把字符串program赋给数组的语句是( )。
(A)char a[ ] = {'p','r','o','g','r','a','m','\0'};
char a[ ] = {'p','r','o','g','r','a','m','\0'};
(B)char a[10]; strcpy(a,"program");
char a[10]; strcpy(a,"program");
(C)char a[10]; a = "program";
char a[10]; a = "program";
(D)char a[10] = { "program"};
char a[10] = { "program"};
Copyright ©