in C# by (9.4k points)
0 like 0 dislike

How I can to return character which is at index in C Sharp (C#) programing language? How to return character by string index?

1 Answer

0 like 0 dislike
by (9.4k points)

Somehow like this:

string s = "hello";
char c = s[1];
// now c == 'e'

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.