1)

Is conversion possible for the given set of code?

static void Main(string[] args)
{
int a = 86;
char b;
b = (char)a;
Console.WriteLine(b);
Console.ReadLine();
}


A) Compiler will generate runtime error

B) Conversion is explicit type

C) Conversion is not possible from ‘integer’ to ‘character’ datatype

D) None of the mentioned

Answer:

Option B

Explanation:

Here one datatype is integer and other datatype is char. Compiler cannot automatically convert from integer data type to char data type and hence, explicitly one need to specify datatype for the conversion.