What will be the output if int m,p;m=5;p=0; p= m-- + --m;
Answers
Answered by
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,
23 days ago
Math,
23 days ago
Social Sciences,
23 days ago
Business Studies,
1 month ago
Chemistry,
1 month ago
Hindi,
9 months ago
Math,
9 months ago