0 like 0 dislike
6 views
asked in C sharp (C#) by (4.8k points)

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

Your answer

pre, code

Preview

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.

1 Answer

0 like 0 dislike
answered by (4.8k points)

Somehow like this:

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

Related questions

0 like 0 dislike
1 answer 16 views
0 like 0 dislike
1 answer 9 views
0 like 0 dislike
1 answer 17 views
0 like 0 dislike
1 answer 10 views
0 like 0 dislike
1 answer 23 views
0 like 0 dislike
1 answer 33 views
0 like 0 dislike
1 answer 9 views
0 like 0 dislike
1 answer 32 views
0 like 0 dislike
1 answer 26 views
0 like 0 dislike
1 answer 30 views
...