MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following statement correctly assigns a value 33 to a variable c? byte a = 11, b = 22, c; |
| A. | <i class="csharp-code">c = (byte) (a + b);</i> |
| B. | <i class="csharp-code">c = (byte) a + (byte) b;</i> |
| C. | <i class="csharp-code">c = (int) a + (int) b;</i> |
| D. | <i class="csharp-code">c = (int)(a + b);</i> |
| E. | <i class="csharp-code">c = a + b;</i> |
| Answer» B. <i class="csharp-code">c = (byte) a + (byte) b;</i> | |