已知程式如下,下列敘述何者正確? #include<stdio.h> #include<iostream> main() { char n1[10], n2[10]; gets(n1); gets(n2); if (n1 == n2) printf("YES"); else printf("NO\n"); system("PAUSE"); }
A若輸入兩個字串"Alice"與"Alice",則輸出 YES
B若輸入兩個字串"Alice"與"Alice",則輸出NO 並跳行正確答案
C若輸入兩個字串"Alice"與"Kent",則輸出 YES
D編譯時出現錯誤訊息
答案與詳解
