What is the output of following code.
p = 5;
p + = p++ * 2;
Answers
Answered by
0
Answer:
10 will be the output.....
Answered by
0
Answer:
15
Explanation:
p+ = p++ * 2 ; (i.e. p = p + (p++ * 2))
Now,
p=5
p++ = 5;
So,
p = 5+(5*2)
p = 5+10
p = 15
.
.
.
.
HOPE THIS HELPS YOU
.
.
.
.
PLEASE MARK AS BRAINLIEST.
Similar questions
Math,
4 months ago
Science,
4 months ago
Physics,
4 months ago
Computer Science,
10 months ago
English,
10 months ago
Accountancy,
1 year ago