Which of the following statement correctly assigns a value 33 to a variable c
byte a = 11, b = 22, c;

c = (byte) (a + b);
 
c = (byte) a + (byte) b;
 
c = (int) a + (int) b;
 
c = (int)(a + b);
 
c = a + b;
 

Answer

A Foxoyo User

Statistics

0 Level
0
Attempts
0
Accuracy
0
Bookmark
0
Tags

Quizes

Related Questions