Computer Science, asked by nandhinee, 11 months ago

void main()

{

int i=7;

printf(“%d”,i++*i++); explain and answer​

Answers

Answered by sswaraj04
1

Answer:

56

Explanation:

i = 7

printf(“%d”,i++*i++);

Post increment operator i++ is used here

So

( i++ * i++)

( 7 * 8 ) =56

first i++ wil change value to 8 but value used here will be 7

second i++ will change its value to 9 but value used here will be 8

now , i = 9

Hope it helps :-)

Similar questions