單項選擇題char s1[20]="hello",s2[20]="china";const char *ptr=s1;以下不符合C++語法規(guī)則的是()

A.strcpy(s2,ptr);
B.ptr=s2;
C.ptr=ptr+4;
D.*ptr=*s2;


您可能感興趣的試卷