Computer Science, asked by daliadas293, 6 months ago

Evaluate the following :-
int m=11, r=7,k=3;

find k+=(--m%5)*(m++ *(10 + r++));​

Answers

Answered by anindyaadhikari13
2

Question:-

➡ Evaluate the following expression.

Solution:-

Given that,

m=11

r=7 and

k=3

k+=(--m%5)*(m++*(10+r++));

➡ k = 3 + (10%5)*(10*(10+7))

➡ k = 3+0*(10*17)

➡ k = 3+0

➡ k = 3

Hence, the final value of k after execution is 3.

For verification, check out the attachment.

Attachments:
Similar questions