Javatpoint Logo
Javatpoint Logo

C# String ToCharArray()

The C# ToCharArray() method is used to get character array from a string object.

Signature

Parameter

First method does not take any parameter while second method takes two integer parameters.

Return

It returns a character array.


C# String ToCharArray() Method Example

Output:

H
e
l
l
o
 
C
#




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA