Computer Science, asked by srujanaenugala123, 7 hours ago

What will be the value of res?
Set Integer m=3
Set Integer n=6
Set Integer p=-5
Set Integer res=(++ m + n*p​

Answers

Answered by dhinchaak1234
2

Answer:

as a great day of school and my friends

Explanation:

but I have a great day of school and my friends

Answered by varshamittal029
0

Concept:

Unary operators that increment or add 1 to the operand value are known as increment operators. The double plus symbol (++) represents the Increment operand.

Given:

m=3\\n=6\\p=-5\\res=++m+n*p

Find:

Find the value of res.

Solution:

Before assigning the operand to the expression, the pre-increment operator is used to increase its original value by one.

++m=1+3\\m=4

Calculate the value of res.

res=++m+n*p\\res=4+6*(-5)\\res=4-30\\res=-26

Therefore the value of res=-26.

Similar questions