Programming Languages C# Objective
Mar 06, 2013

Which of the following statement correctly assigns a value 33 to a variable c?

byte a = 11, b = 22, c;

 

Choose the correct answer:
A) c = (byte) (a + b);
B) c = (byte) a + (byte) b;
C) c = (int) a + (int) b;
D) c = a + b;
Detailed Explanation

Option A is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback