Question: 2. Assume that the following variable declarations have already been executed: int a = 10; int b = 4; double c = 4; double d

2. Assume that the following variable declarations have already been executed: int a = 10; int b = 4; double c = 4; double d = 4.0; Given the statements above, determine the value of each of the following expressions. Make sure that your answers clearly indicate the type of each value. In particular, floating- point values should have a decimal and strings should be surrounded by double quotes. a. a + d b. a + "d" C. b/a d. c/a e. d/a f. g. a / b * d (double)(a/b) (double)a / b h. i. 1 + 2 + "3" j. 1 + "2" + 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
