Output char array : char array « Data Type « C# / CSharp Tutorial






using System;

class MainClass
{
  static void Main(string[] args)
  {
    char[] MyChar = { 'H', 'e', 'l', 'l', 'o', '\0' };

        Console.WriteLine(MyChar);
  }
}
Hello








2.20.char array
2.20.1.char arrays
2.20.2.Initialize char arrays
2.20.3.Output char array
2.20.4.Assign values to char array elements