Computer Science, asked by uday5361, 1 month ago

What will be the output if int m,p;m=5;p=0; p= m-- + --m;

Answers

Answered by thatAdityadutt
7

Answer:

8

Logic:

Given:

m, as an integer = 5

Whereas, p = 0.

We all know that the operator -- means minus 1.

Now you're assigning p to m-- + --m

Let's change the variables name to their actual value

5-- + --5

which is 4 + 4

and, we all know that 4+4 is 8.

Liked my answer?

Mark the answer as brainliest if you would.

Similar questions
Math, 9 months ago