Register now or log in to join your professional community.
static void Main(string[] args)
{
char a = 'A';
string b = "a";
Console.WriteLine(Convert.ToInt(a));
Console.WriteLine(Convert.ToInt(Convert.Tochar(b)));
Console.ReadLine();
}
a)1,b),c),d),1
Answer is: A: 97 & B: 98
Because we converting character to integer so it give us ascii value
Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.