Computer Science, asked by rkansara139, 10 months ago

What is the output of following code.

p = 5;

p + = p++ * 2;​

Answers

Answered by AishikiAishiki
0

Answer:

10 will be the output.....

Answered by ArpitMishra506
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