C#C
C#3y ago
25 replies
Jibz

✅ How do I convert a char to ascii and ascii back to char?

I tried this:
int b = (int)'b';
int e = (int)'e';
int c = e - b;
Console.WriteLine("char is: " + c);

and the output is:
char is:

basically .... nothing
Was this page helpful?