108 年 108年公務人員高等考試三級考試暨普通考試・計算機概要
23下列C程式執行後的結果為何?char s1[10]="abc",s2[10]="abc",s3[10]="def";if (s1==s2)printf("string1 and string2 are the same\n");elseprintf("string1 and string2 are different\n");if (s1==s3)printf("string1 and string3 are the same");elseprintf("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