Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class StringInReverse
- {
- static void Main()
- {
- string str = "abcd";
- char[] strArr = str.ToCharArray();
- Array.Reverse(strArr);
- Console.WriteLine(strArr);
- //Here I will printed from index[1] with length 2
- Console.WriteLine(strArr, 1, 2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement