Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,151 questions

40,705 answers

573 users

How to convert int array to string array in C#

1 Answer

0 votes
using System;
 
class Program
{
    static void Main() {
        int[] iarray = { 6, 9, 0, 2, 7 };
        
        string[] sarray = Array.ConvertAll(iarray, element => element.ToString());

        foreach (string s in sarray) {
            Console.Write("{0} ", s);
        }
    }
}
 
 
 
 
/*
run:
 
6 9 0 2 7 
 
*/

 





answered Oct 24, 2020 by avibootz

Related questions

1 answer 39 views
1 answer 39 views
1 answer 69 views
2 answers 71 views
1 answer 48 views
48 views asked Oct 24, 2020 by avibootz
...