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
#





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA