Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    int x = 8;
    int b = 16;
    int C = 64;
    x /= b /= C;
    Console.WriteLine(x + " " + b+ " " +C);
    Console.ReadLine();
}

A. 8 2 32

B. 32 4 8

C. 32 2 8

D. Compile time error

Answer: Option D


Join The Discussion

Related Questions on Classes and Objects in C Sharp