执行下面代码后: String strTemp ="abcdefg 某某某"; Int i System.Text.Encoding.Default.Get
执行下面代码后:
String strTemp ="abcdefg 某某某";
Int i System.Text.Encoding.Default.GetBytes(strTemp).Length;
Int j = strTemp.Length;
问:i=(14 ) ;j=(11 )
执行下面代码后:
String strTemp ="abcdefg 某某某";
Int i System.Text.Encoding.Default.GetBytes(strTemp).Length;
Int j = strTemp.Length;
问:i=(14 ) ;j=(11 )
执行下面代码后:
String strTemp ="abcdefg 某某某";
Int i=System.Text.Encoding.Default.GetBytes(strTemp).Length;
Int j=strTemp.Length;
问:
i=?
j=?
执行下面代码后:
String strTemp =”abcdefg 某某某”;
Int i System.Text.Encoding.Default.GetBytes(strTemp).Length;
Int j = strTemp.Length;
问:i=(14 ) ;j=(11 )
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
分析以下代码,完成填空
string strTmp = abcdefg某某某;
int i= System.Text.Encoding.Default.GetBytes(strTmp).Length;
int j= strTmp.Length;
以上代码执行完后,i= j=
下面代码有什么问题?
Void test3(char* str1)
{
char string[10];
if(strlen(str1)<=10)
{
strcpy(string, str1);
}
}
下面代码有什么问题?
Void test2()
{
char string[10], str1[10];
for(i=0; i<10;i++)
{
str1[i] ='a';
}
strcpy(string, str1);
}
A.1,1
B.1,1.0
C.1.0,1
D.1.0,1.0