单选题 判断字符串a和b是否相等,应当使用(    )。
   A.if(a==b)    B.if(a=b)
   C.if(strcpy(a,b))D.if(strcmp(a,b))
【正确答案】 D
【答案解析】