Computer Science, asked by mail2sibani10, 9 months ago

int a=7; int z=(a++) + (++a); What is the value of z?

Answers

Answered by dustuavijit
2

Answer:

16

Explanation:

a++ -- here value of a increased by one but

effect will be seen later, so 7 is placed

here and a becomes 8

++a -- here value of a already 8. pre increme

nt of a make it increase by one and

effect is seen here. so 8+1=9 placed

here.

7 + 9 = 16

Similar questions