Vidyalelo
C# Programming · Q55

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 55

Q55

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();

A.
Compiler will generate runtime error
B.
Conversion is explicit type
Answer
C.
Compiler will urge for conversion from 'integer' to 'character' data type
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board