What will be the output of the following C# code? [code] static void Main(string[] args) { int x = 1; float y = 2. 4f; short

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();
}
A. 0.4000004
B. 0.4000023
C. 0.0400021
D.
Code:
0.4000001
 

Tìm kiếm

Back
Top