如下程序给出了我们常用的值类型在系统环境中的原型定义using System
class Test
{
public static void Main()
{
float[]float_arr=new float[10];
double[]double_arr=new double[10];
sbyte[]sbyte_arr=new sbyte[10];
ushort[]ushort_arr=new ushort[10];
int[]int_arr=new int[10];
long[]long_arr=new long[10];
string[]string=new string[10];
Console.WriteLine(float_arr);
Console.WriteLine(double_arr);
Console.WriteLine(sbyte_arr);
Console.WriteLine(ushort_arr);
Console.WriteLine(int_arr);
Console.WriteLine(long_arr);
Console.WriteLine(string_arr);
}
} 这个程序输出结果为System.Single[]
System.Double[]
System.Sbyte[]
System.Byte[]
System.Int16[]
System.Int32[]
System.Int64[]
System.String[]按照我的理解
输出一个数组名
是否应该是这个数组的首地址呢
他上面输出的又是一个什么意思
谢谢~~
class Test
{
public static void Main()
{
float[]float_arr=new float[10];
double[]double_arr=new double[10];
sbyte[]sbyte_arr=new sbyte[10];
ushort[]ushort_arr=new ushort[10];
int[]int_arr=new int[10];
long[]long_arr=new long[10];
string[]string=new string[10];
Console.WriteLine(float_arr);
Console.WriteLine(double_arr);
Console.WriteLine(sbyte_arr);
Console.WriteLine(ushort_arr);
Console.WriteLine(int_arr);
Console.WriteLine(long_arr);
Console.WriteLine(string_arr);
}
} 这个程序输出结果为System.Single[]
System.Double[]
System.Sbyte[]
System.Byte[]
System.Int16[]
System.Int32[]
System.Int64[]
System.String[]按照我的理解
输出一个数组名
是否应该是这个数组的首地址呢
他上面输出的又是一个什么意思
谢谢~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货