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 /= x;
    Console.WriteLine(x + " " + b+ " " +C);
    Console.ReadLine();
}

A. 8 2 4

B. 2 4 8

C. 4 2 8

D. Compile time error

Answer: Option C


Join The Discussion

Related Questions on Classes and Objects in C Sharp