问一个考试的问题?
下列语句执行后,变量i的值为多少?()string str =@"""Ahoy"",cried the caption.";
string str2 ="\"Ahoy\",cried the caption.";
int i=string.Compare(str,str2);
A .false B.-1 C.1 D.0
这道问题的作案是多少呢?有知道的能详细说明下为什么选那个答案呢?我感觉是A 因为str ,str2 是不同的..
有人知道的就联系下偶~~