Given: (3,6)
int numi, num2, newNum;
double x, y;
Which of the following assignments are valid? If an assignment is not valid, state the reason.
a. numl = 35;
b.newNum = numl - num2;
c.numl = 5;num2 = 2 + numl;numl = num2 I 3;
d. numl * num2 = newNum; e.x = 12 * numl - 15.3;
f.numl * 2 = newNum + num2;
g. x / y = x * y;
h. num2 = numl % 2.0;
i.newNum = static_cast (x) % 5;j.x = x + y - 5;k. newNum = numl + static_cast (4.6/2);
j.x = x + y - 5;
k. newNum = numl + static_cast (4.6/2);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here