value of P=P* ++J where J is 22 and P=3

Q22. What will be the value of P=P* ++J where J is 22 and P=3 initially?

Ans. 

Initially p=3 and j=22.

After the increment operation, the value of j will become 23.

p=p*++j

p=3*23

p=69

 

Value of P is 69.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: