Q. What will be the output of the following C# code?
Code:static void Main(string[] args)
{
int x = 1;
float y = 2. 4f;
short z = 1;
Console. WriteLine((float) x + y * z - (x + = (short) y) );
Console. ReadLine();
}
β
Correct Answer: (D)
0.4000001