Question #19194

Which of the following C# code lines is valid?
byte x = 2.0;
byte x = (2 + 3);
byte x = (byte)(2.0 + 3);
byte x = (byte)(10 - 11);

Expert's answer

byte x = (byte)(10 - 11);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS