For the given set of C# code, is conversion possible?
static void Main(string[] args)
{
int a = 76;
char b;
b = (char)a;
Console.WriteLine(b);
Console.ReadLine();
}
static void Main(string[] args)
{
int a = 76;
char b;
b = (char)a;
Console.WriteLine(b);
Console.ReadLine();
}
A. Compiler will generate runtime error
B. Conversion is explicit type
C. Compiler will urge for conversion from 'integer' to 'character' data type
D. None of the mentioned
Answer: Option B
Join The Discussion