I am working on a homework question and I have been able to do everything but this one question. I think I have an idea of how to go about it, I just want to make sure.
Assume the following declarations:
int a =1, b = 2, c = 3;
Fully parenthesize and evaluate each of the following expressions assuming they are evaluated in the order in which they are written.
So I have 2 expressions:
(double)a / b * c
a / (double)(b + c)
which I parenthesized to
((double)a) / (b * c)
(a) / ((double)(b + c))
I am just not sure on how to go about solving the double part of the question, does this just mean that it the evaluation of this will be printed in such a fashion of like 3.000 or 5.000 not just like a regular int such as 3 or 5?