下列 C 程式執行後的結果為何? char s1[10]="abc",s2[10]="abc",s3[10]="def"; if (s1==s2) printf("string1 and string2 are the same\n"); else printf("string1 and string2 are different\n"); if (s1==s3) printf("string1 and string3 are the same"); else printf("string1 and string3 are different");
Astring1 and string2 are the same string1 and string3 are the same
Bstring1 and string2 are the same string1 and string3 are different
Cstring1 and string2 are different string1 and string3 are the same
Dstring1 and string2 are different string1 and string3 are different正確答案
答案與詳解
