Computer Science, asked by Varsha05, 1 year ago

Determine the data type of the expression

[100(1-pq)/(q+r)] – [(p+r)/s / (long)(s+p)]

If p is an int, r is a float, q is a long and s is double.

Answers

Answered by Anonymous
44
[100(1-pq)/(q+r)] – [(p+r)/s / (long)(s+p)]

[100(1 – int*long) / (long + float)] – [(int + float)/double / (long)(double + int)]

[100(1-long) / (long)] – [(float)/double / (long)(double)]

[100(long) / (long)] – [double / long]

[long/long] – [long]

long – long

long

So, the data type of the expression is long.

Answered by sujathagowtham144
13

Explanation:

see the answer clearly

M A R K M E A S B R A I N L I S T

Attachments:
Similar questions