?
What will be the output of the following C# code?
What will be the output of the following C# code?
static void Main(string[] args)
{
int a = 4, b = 5, c = 7, u = 9;
int h;
h = (Convert.ToInt32(u < b)) + (a + b--) + 2;
Console.WriteLine(h);
Console.WriteLine(b);
Console.WriteLine(u < b);
}
static void Main(string[] args)
{
int a = 4, b = 5, c = 7, u = 9;
int h;
h = (Convert.ToInt32(u < b)) + (a + b--) + 2;
Console.WriteLine(h);
Console.WriteLine(b);
Console.WriteLine(u < b);
}
Join the Discussion
Login to post a comment or share your explanation.
Login