2
Answers

Working with Integer Arrays

Hi all,

Here is my simple piece of code of a Console Application..

int[]    a= {1,2,3,4};
char[] b= {'a','b','c'};
Console.WriteLine(a);
Console.WriteLine(b);

Result:

System.Int32[]
abc 

When printing, why it is displaying 'System.Int32[]'?
Answers (2)