Computer Science, asked by rahulroy1022, 11 months ago

Evaluate the following c++expression where a, b, c, are integers and d, f are floating numbers. The values are a=5,b=3 and d=1.5
1. C = (a++) *d+a
2. f = a++*b++

Answers

Answered by GeniusSam
1

Answer:

C = 5*1.5+5 = 12.5

f = 5*3=15

Explanation:

for the 1st one i am also confused

it could be either 12.5 or 14

but for the 2nd one it is easy and its Post increment

hence the current values of a and b will be used and after the statement execution they will be incremented

Similar questions