How to print an entire char array with Console.WriteLine in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            char[] array = new char[] { 'a', 'b', 'c', 'd', 'e' };

            Console.WriteLine(array);
        }
    }
}


/*
run:
  
abcde
 
*/

 



answered Aug 15, 2018 by avibootz

Related questions

1 answer 246 views
1 answer 269 views
1 answer 240 views
1 answer 273 views
1 answer 243 views
...