Why is “System.Byte[]” coming when “byte[]” is entered?

  • A+
Category:Languages

I'm a beginner to programming and use C# to learn programming. When I enter this code

byte[] bytes={1,2,3}; Console.WriteLine(bytes);

the output isSystem.Byte[]. Why is that? How can I fix it?


you miss iteration

       for (int i = 0; i < bytes.Length; i++)         {             Console.WriteLine(bytes[i]);         } 

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: