Computer Science, asked by Tanichakraborty, 8 months ago

p=(r++%7) + (--m%5) + k*(++k-8)

k=2,m=4,r=5

please solve it.........​

Answers

Answered by Oreki
2

Output:

-2

Explanation:

> p = (r++ % 7) + (--m % 5) + k * (++k - 8)

> p = (5 % 7) + (3 % 5) + 2 * + (3 - 8)

> p = (5) + (3) + 2 * (-5)

> p = 8 - 10

> p = -2

Answered by imtiyazallam
0

Answer:

The value stored in variable p is -2

Attachments:
Similar questions