Q. Type of Conversion in which compiler is unable to convert the datatype implicitly is ?
β
Correct Answer: (B)
int to uint
Dear candidates you will find MCQ questions of .NET Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
static void Main(string[] args)
{
char a = 'A';
string b = "a";
Console.WriteLine(Convert.ToInt32(a));
Console.WriteLine(Convert.ToInt32(Convert.Tochar(b)));
Console.ReadLine();
}
Jump to