Nguyễn Tiến Dũng
New member
What will be the output of the following C# code?
A. Compile time error: Misplaced else
B. Compile time error: Undefined symbol
C. java
D. Warning: Condition is always true
Code:
static void Main(string[] args)
{
int a = 5, b = 10;
if (Convert.ToBoolean(Convert.ToInt32(0xB)))
if (Convert.ToBoolean(Convert.ToInt32(022)))
if (Convert.ToBoolean(Convert.ToInt32('\xeb')))
Console.WriteLine("java");
else ;
else ;
else ;
}
B. Compile time error: Undefined symbol
C. java
D. Warning: Condition is always true