在以下程序中,哪一行执行了装箱操作( )public static void Main() {int i = 10; object obj = i; //Line:1Console.WriteLine(“{0},{1}”,i,obj); //Line:2int j = (int)obj; //Line:3Console.WriteLine(“{0},{1}”,j,obj); //Line:4}
A. Line:1
B. Line:2
C. Line:3
D. Line:4
以下程序的输出结果是( )public static void Main(){int i = 10;Console.WriteLine(“|{0,3 }|”,i);}
A. |10|
B. | 10|
C. |10 |
D. |010|