Limited access

Upgrade to access all content for this subject

Which of the following is a valid expression?

A
int x = 5.5;
B
double y = 0;
int x = y;
C
int x = (int)2.5;
D
int x = 5 * 2.6;
E
int x = 4.0;
Select an assignment template