1

Suppose I have a string:

string  test = "hello world"; 

How can I convert this string to an array of characters?

1 Answer 1

2

Use

char[] temp = test.ToCharArray();

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.