Q:

What will be the output of the following code snippet?

0

What will be the output of the following code snippet?

using System;

class program 
{ 
   static void Main(string[] args) 
   { 
   int x = 8; 
   int b = 16; 
   int c = 64; 
   x /= c /= b; 
   Console.WriteLine(x + " " + b+ " " +c); 
   Console.ReadLine(); 
}
}

  1. 2 16 4
  2. 4 8 16
  3. 2 4 8
  4. 8 16 64

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

2  16   4

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now