What will be the resultant type of expression

Q35. What will be the resultant type of the following expression if ch represents a char variable, i is an int variable, f1 is a float variable and db is a double variable?

ch – i + db / f1 – i * f1 + db / i.

Ans. The resultant type of the above given expression would be double.

Leave a Reply

Your email address will not be published. Required fields are marked *

93 Views
%d bloggers like this: