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 239 views
1 answer 265 views
1 answer 232 views
1 answer 269 views
1 answer 238 views
...